Hi Everyone,
We are cleaning data that was entered manually into a csv and have some issues where in several observations, all entries were somehow shifted over one. For example, a subset of our data might look like this:
where the values for ID 2 need to be shifted one to the left. I am wondering if there is a way to automate this shifting of values without having to replace values in variables one by one. I read in another post that you can reshape long and then use by and subscripting, but I am not sure how to reshape this dataset as there are no common variable stub names.
Any advice would be appreciated!
Thanks!
We are cleaning data that was entered manually into a csv and have some issues where in several observations, all entries were somehow shifted over one. For example, a subset of our data might look like this:
ID | Gender | Language | Income | v25 |
1 | F | 3 | 5000 | |
2 | M | 3 | 300 | |
3 | F | 2 | 100 | |
4 | F | 1 | 3000 |
Any advice would be appreciated!
Thanks!
Comment