---
---
In this file I selected my variables for my research
The first thing I did was load in the dyplyr and janitor commands. This will allow me to use the pipe tool which I will use later to plug in my variables.
The second thing I did was load in the raw data using the load command
The next thing to do is to load in the ls command in order to find out what the data is called.
Once that has been done, the next step is to load in the variables I wanted to change
To do that I first put in mydata and then adhealth because my data is in there. Then I used the pipe tool and from there I selected the variables I wanted to enter.
From here the next step was to change the values of the categorical variables. I did that by mutating and recoding the old variables so that I could replace them with the new ones.
After I finished mutating the variables I deleted the old ones by using select so that only the new ones would stay.
Then I cleaned the data. For that I used the clean command.
The last thing I did was do tables for my variables. I used the tabyl command.
This table shows percentages and numbers for what people are doing at the time. Like are they looking for work, keeping house, or are they permanently sick etc.
This table shows reasons people left their main job.
This table shows how many hours people spend at the jobs they're working at.
This table shows how many jobs a person is currently working for that pays at least 10 hours a week.
The final step is to save the clean data.