Working with factors and categorical variables. Use forcats in R programming to change factor levels

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • R programming for beginners just got easier. If you're working with categorical variables or factors (as they are called in R) then you'll love the forcats package. Forcats lets you change factor levels in a number of exciting ways. If you are learning R programming, then you'll find this tremendously useful for anything related to categorical variables - be it data visualization, working with tables, doing a chi-squared test and more.
    This channel is supported by Nested Knowledge - an online platform that supports the entire literature review process. Please do check them out at this link: about.nested-k...?&RPYT

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

  • @RProgramming101
    @RProgramming101  Год назад +1

    Get my FREE cheat sheets for R programming and statistics (including transcripts of these lessons) here: www.learnmore365.com/courses/rprogramming-resource-library

  • @MCshaneization
    @MCshaneization 2 года назад +8

    Zooming in so we can watch on our phones is just one example of your fabulousness, you are the absolute GURU of R tutorials!

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

      So nice of you - thanks for the great feedback!

  • @lody33100
    @lody33100 Год назад +5

    I swear you're unbelievably talented at all levels of creating content

  • @brittnyfreeman3650
    @brittnyfreeman3650 2 года назад +5

    The zoomed in text for cell phone viewers is such a nice touch! 👌 One if my favorite ways to consume your content!

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

      Glad you enjoy it! Thank you for the feedback!

  • @addopatrick6042
    @addopatrick6042 Год назад

    I can't but say, Greg, I admire you a lot.
    Thanks for this comprehensive and step-by-step video for us.

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

    Fabulous !!! Just excellent. You have been absolute savior! Thank you very much.

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

    the most amazing video ever , i just love all your videos

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

      Thanks for the great feedback Karen. Much appreciated!!

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

    Very helpful, invaluable programming.Keep more coming

  • @romanvasiura6705
    @romanvasiura6705 Год назад

    Thank you for this amazing channel!

  • @godlovemehaha
    @godlovemehaha Год назад

    Just found your channel. Very helpful . Thank you

  • @tuanatnguyen9878
    @tuanatnguyen9878 Год назад

    Really detailed and useful tutorial. Thanks a lot

    • @RProgramming101
      @RProgramming101  Год назад

      Glad it was helpful! Thank you for your feedback!

  • @patrickrankin184
    @patrickrankin184 Год назад

    Great videos. Thank you

  • @annasognosia
    @annasognosia Год назад

    Thank you. It's very easy to follow.

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

    Fabulous teacher!!! Could you please show us how to add the numbers to the bar charts?

  • @zanjeeltariq9079
    @zanjeeltariq9079 7 месяцев назад

    THANKYOU SO MUCH!!!!!!

  • @angie-mx5gv
    @angie-mx5gv Год назад

    Thank you so much!

  • @onkar7651
    @onkar7651 Год назад

    super useful in visualization!!

  • @InsideBest365
    @InsideBest365 Год назад

    Learned a lot thanks

  • @minjeoungkim9505
    @minjeoungkim9505 Год назад

    Really helpful. Thanks!

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

    ¡Thanks this content expand the universe of r !

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

    Very much explained.goood
    Afrika.kenya

  • @castel32
    @castel32 5 месяцев назад

    Thanks. This is great. But I was not able to make it work for my case. I have a stacked barplot with 3 categories (A,B,C) for each X and want to order by decreasing % of A regardless the other 2 values. Also, can you filter and sort the x factor in a certaing way and then save it/keep this way and use for the unfiltered data. Thanks a lot. Awesome content.

  • @mugomuiruri2313
    @mugomuiruri2313 Год назад

    Wonderful

  • @petongtitus
    @petongtitus Год назад

    when you use 'mutate(.)' (at minute: 20:17), does the original data change accordingly? so on the gss_cat %>% View() we will be seeing column 'partyid' in 4 categories instead of so many (i think about 10 categories)?

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

    This si helpful. Thanks so much. Please any videos on how to average scores on a multi-item scale? Is there anyway of reaching you for further questions? Thanks.

    • @johnmcghee3963
      @johnmcghee3963 Год назад

      I was thinking the same. I guess not 😂

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

    How could you get the exact number of a bar in these charts? What i mean is, you got the count at the y axis and you see approximately what the count is. Let’s say it is between 15.000 and 10.000 but you cannot tell the exact number. Is there any function to show either the exact number of the bar in/on the bar itself or to make the y axis with more detail so it is shown like this: 15.000 , 14.900, 14.800 …..

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

    Make a playlist regarding geo-density in mapping

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

    I am getting you Loud and clear here in afrika place called kenya .world have become a small village really

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

      I've been to Kenya - what a lovely country. Say hello to your fellow countrymen for me please

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

      @@RProgramming101
      Welcome. I will greet all for you.Your teaching will go a long way if u didn't know.welcome

  • @laynehansen6216
    @laynehansen6216 7 месяцев назад

    I need to change my text-based factors into numerical values and am having a hard time finding how to do this. Could someone give me some guidance to a video or blog? I need this in order to run some correlations and regressions.

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

    I now get forcats

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

    Don't quite get the difference between select (race) and pull (race)

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

      @Jacky Mo, He actually explained it, using SELECT will extract the race column as a DATA.FRAME, whereas using PULL will extract it as a FACTOR type which is the desired outcome in this case.

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

      @@souhaibsebbane5623 thanks. so we need to memorise which function takes data.frame which takes factor. Are there any tips on that?

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

    I have a small query can you help me with that. Please

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

      I have seen all you videos and always recommend you, will be thankful if you all me get out of this issue

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

    Thank you so much!