Basically, what this means is that health scores were measured in 5 levels, and I would like to map these to 3 levels, in terms of data reduction.
However, when I load in my Excel sheet and follow the R code, I get persistent error terms such as:
'Could not find function' (referring to my data)
'Column names do not match' (despite my columns having the same name as the commands)
'argument missing' (it says 'mobility' is missing with no default).
Would genuinely appreciate if someone has ran this set of commands before to show me an example of how they've done so, and what their Excel sheet looks like in preparation for the operation.
but replace DF with the name of the data frame containing your data. Post the output of that here between lines containing only three back ticks
```
your output here
```
And please say which columns correspond to mobility, self_care, etc.
I'm sure you shared this image with the best intentions, but perhaps you didnt realise what it implies.
If someone wished to use example data to test code against, they would type it out from your screenshot...
This is very unlikely to happen, and so it reduces the likelihood you will receive the help you desire.
Therefore please see this guide on how to reprex data. Key to this is use of either datapasta, or dput() to share your data as code