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.

Комментарии • 11

  • @alishagray3441
    @alishagray3441 6 месяцев назад

    so helpful!! thank you so much! :)

  • @ujjwalmainali250
    @ujjwalmainali250 2 года назад +1

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

  • @jktmlsna8477
    @jktmlsna8477 2 года назад

    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.

  • @nehapatyal4439
    @nehapatyal4439 2 года назад +1

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

  • @rusdision
    @rusdision 2 года назад

    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

  • @poojamahesh8594
    @poojamahesh8594 3 года назад

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

    • @dr.chiragmalik586
      @dr.chiragmalik586  2 года назад

      Hi Pooja, you need to send the dataset to me at chiragmalik@yahoo.com, only then I will be able to suggest. Thanks

  • @ayoubmakboul5998
    @ayoubmakboul5998 2 года назад

    im so tnkful ❤❤

  • @CUTEBABYAKKU
    @CUTEBABYAKKU 2 года назад

    thank u

  • @wahyudiyanramadana8219
    @wahyudiyanramadana8219 3 года назад

    thanks for your explanation sir, you are the best