Converting numeric into factor variables in R Studio (includes adding labels to factor levels)
HTML-код
- Опубликовано: 26 фев 2023
- This video demonstrates how to convert numeric into factor variables. I begin by creating a small data frame in R Studio. From there, I walk through steps for converting numeric variables into factor variables, and also how to add value labels that will show up in your output.
Link to R script file from video here:
drive.google.com/file/d/1vqbn...
Additional link:
drive.google.com/file/d/1oP1M...
Be sure to check out my online sites at:
www.drmcstats.net/
sites.google.com/view/statist...
Thank you so so much, your guidance is so easy to follow, it's really appreciated!!
Thanks for teaching. It was straight to the point.
thanks a lot for the detail explanation
👏
💐
🙏
When you apply the factor function over genderid, and then you use the str function, you can see that R shows "1"s and "2"s...That is confusing, because those ones and twos are neither levels nor labels!!!!