Converting numeric into factor variables in R Studio (includes adding labels to factor levels)

preview_player
Показать описание
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:

Additional link:

Be sure to check out my online sites at:
Рекомендации по теме
Комментарии
Автор

Thank you so so much, your guidance is so easy to follow, it's really appreciated!!

ameliadavis
Автор

Thanks for teaching. It was straight to the point.

blzliwz
Автор

thanks a lot for the detail explanation

nabilzawad
Автор

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!!!!

javierbeltran