hi guys, I am newly introduced to R and I am overwhelmed by it. I have this assignment and I have no clue as to how to go about it. I was hoping someone could help me figure it out. I would be very grateful .
with the ESS dataset ,
Create a subset with participant id (no) and the variables freehms, hmsfmlsh, hmsacld and gndr.
3.Invert the scale of the variable hmsfmlsh.
4.Remove missing values from the data.
5.Create a new variable with the consisting of the mean of the variables freehms, hmsfmlsh and hmsacld for each participant.
As a homework problem, this is for you to figure out. If you post what you've tried so far and what error(s) you are getting, then people here will have a chance to help you past your blockers. As written now, it's just asking for people to write the code for you, which is unlikely to get much of a response.
FAQ: How to do a minimal reproducible example ( reprex ) for beginners
A handy way to supply data is to use the dput() function. Do dput(mydata) where "mydata" is the name of your dataset. For really large datasets probably dput(head(mydata, 100)) will do. Paste the output between
```