Factors in R: Recode, Relevel, Reorder

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ •

  • @NedalAssad
    @NedalAssad 2 роки тому

    that was great ,, am very impressed with the simplicity of how you can solve the matters . great job bro .. keep it up

  • @user-ui5fx1yp2x
    @user-ui5fx1yp2x 2 роки тому +1

    u saved me for my final exam i love u so much

  • @ruthnorris5626
    @ruthnorris5626 2 роки тому

    Thank you so much .. have been spending literally hours on trying to relevel my factor levels...and thanks to you this works ! (none of the other ways did)

  • @louiseweschler1746
    @louiseweschler1746 2 роки тому +2

    I cannot find either dataset. *Your videos are fantastic - I have completed #44 Factors, and wish to advaance to this (#45)

    • @EquitableEquations
      @EquitableEquations  2 роки тому +1

      I'm slowly adding materials for old vids to my GitHub (github.com/equitable-equations/youtube). Thanks for your patience and support!!

  • @djangoworldwide7925
    @djangoworldwide7925 2 роки тому

    Great tutorial. Happy to have found your channel. Subscribed. I have my "go to" for each package and this was a spot-on quick review of the forcats which is not always intuitive to work with. 👍🎈

  • @trb4847
    @trb4847 2 роки тому +1

    How do we fct_reorder a barplot when we are only using one axis(x) to measure count data?

    • @EquitableEquations
      @EquitableEquations  2 роки тому

      You might be looking for fct_infreq().

    • @trb4847
      @trb4847 2 роки тому

      @@EquitableEquations Thanks for the reply,think I figured it out with fct_reorder in the end but fct_infreq() might be worth looking into soon. Loving the videos 👍

  • @forrestoakley4882
    @forrestoakley4882 Рік тому

    Cool! Very useful. Thank you.

  • @salzd3r3rd3
    @salzd3r3rd3 8 місяців тому

    Hello! Thank you so much for your great work, I'm very new to data analysis and your videos are a gem.
    Could you please post the data sets used in this video to your github page? Highly appreciate, thanks in advance!

  • @muizzkhalak
    @muizzkhalak 3 роки тому +1

    Hi
    This video really helped
    Thank you for sharing
    Can you please explain the difference between fct_reorder() and reorder()

    • @EquitableEquations
      @EquitableEquations  3 роки тому

      Glad the vid was helpful!
      These are similar functions. I tend to use {forcats} functions like fct_reorder() because of their common syntax and design philosophy. reorder() is part of base R.

    • @muizzkhalak
      @muizzkhalak 3 роки тому

      @@EquitableEquations
      Thanks for the reply and explanation
      Keep up the good work

  • @CaribouDataScience
    @CaribouDataScience 2 роки тому

    Thanks, I have been looking for a tutorial for fct_ functions.

  • @romanvasiura6705
    @romanvasiura6705 Рік тому

    Thank you!

  • @tiannadermody4761
    @tiannadermody4761 2 роки тому

    fct_relevel does not work for me. Keep getting error: could not find function "fct_relevel"

    • @EquitableEquations
      @EquitableEquations  2 роки тому

      Hi! It's in the {forcats} package, which loads up with tidyverse. You probably forgot your library() command.

  • @hayderfiras4287
    @hayderfiras4287 2 роки тому

    Hello please I did this command smp.l$prof

    • @EquitableEquations
      @EquitableEquations  2 роки тому

      Hi! For specific questions like this, I'd recommend the R4DS learning community, for instance on Slack.