How to convert a character String Variable into categorical Factor Variable in R Studio
HTML-код
- Опубликовано: 3 окт 2024
- 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.
so helpful!! thank you so much! :)
Nice explanation but i do have a question. How do you convert the "M" and "F" character to 1 and 0 as numeric??
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.
how to convert multiple categorical variables into factors in a single command?
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
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 ..
Hi Pooja, you need to send the dataset to me at chiragmalik@yahoo.com, only then I will be able to suggest. Thanks
im so tnkful ❤❤
thank u
thanks for your explanation sir, you are the best
Thanks Wahyu...