How to convert a character String Variable into categorical Factor Variable in R Studio

preview_player
Показать описание
A factor variables behaves differently than a string variable in R so we need to convert it in some situations. This video discusses about how to convert a character String Variable into categorical Factor Variable in R Studio.
Рекомендации по теме
Комментарии
Автор

Nice explanation but i do have a question. How do you convert the "M" and "F" character to 1 and 0 as numeric??

ujjwalmainali
Автор

Super nice explanation, seems basic but is very much necessary to know. But at 4:59, you said nominal and interval scales are collectively called categorical, which confused me, and I think there should be nominal and ordinal scales instead.

jktmlsna
Автор

how to convert multiple categorical variables into factors in a single command?

nehapatyal
Автор

thanks for your explanation sir, you are the best

wahyudiyanramadana
Автор

im still confuse, if i import data from excel and cant set it into factor, still character on my R studio, previously i have follow your command

rusdision
Автор

Very nice explanation..
i have a question, kindly help me out of it..
I have a column of INJ_BODY_PART, it consists of data like KNEE/PATELLA, FINGER(S)/THUMB, BACK (MUSCLES/SPINE/S-CORD/TAILBONE), MULTIPLE PARTS (MORE THAN ONE MAJOR), LOWERLEG/TIBIA/FIBULA, WRIST, CHEST (RIBS/BREAST BONE/CHEST ORGNS) and so on.. kindly help me with line of code.. how can I categorise them ..

poojamahesh