Factors in R: Recode, Relevel, Reorder

  Рет қаралды 8,901

Equitable Equations

Equitable Equations

Күн бұрын

Пікірлер: 21
@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)
@user-ui5fx1yp2x
@user-ui5fx1yp2x 2 жыл бұрын
u saved me for my final exam i love u so much
@EquitableEquations
@EquitableEquations 2 жыл бұрын
Love you right back!
@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
@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. 👍🎈
@louiseweschler1746
@louiseweschler1746 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 жыл бұрын
I'm slowly adding materials for old vids to my GitHub (github.com/equitable-equations/youtube). Thanks for your patience and support!!
@romanvasiura6705
@romanvasiura6705 Жыл бұрын
Thank you!
@forrestoakley4882
@forrestoakley4882 Жыл бұрын
Cool! Very useful. Thank you.
@CaribouDataScience
@CaribouDataScience 2 жыл бұрын
Thanks, I have been looking for a tutorial for fct_ functions.
@salzd3r3rd3
@salzd3r3rd3 7 ай бұрын
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 2 жыл бұрын
Hi This video really helped Thank you for sharing Can you please explain the difference between fct_reorder() and reorder()
@EquitableEquations
@EquitableEquations 2 жыл бұрын
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 2 жыл бұрын
@@EquitableEquations Thanks for the reply and explanation Keep up the good work
@trb4847
@trb4847 Жыл бұрын
How do we fct_reorder a barplot when we are only using one axis(x) to measure count data?
@EquitableEquations
@EquitableEquations Жыл бұрын
You might be looking for fct_infreq().
@trb4847
@trb4847 Жыл бұрын
@@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 👍
@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.
How to create an "other" category in R
7:43
Equitable Equations
Рет қаралды 2,1 М.
A step-by-step guide to parameterized reporting in R using Quarto
20:16
R for the Rest of Us
Рет қаралды 2,7 М.
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН
Conquering Factors in R with "forcats" | R Tutorial (2020)
16:30
RichardOnData
Рет қаралды 3 М.
Tidying Data in R with pivot_longer()
11:57
Equitable Equations
Рет қаралды 19 М.
Data wrangling with R in 27 minutes
27:19
Equitable Equations
Рет қаралды 27 М.
Factor Variables in R
9:51
Equitable Equations
Рет қаралды 18 М.
Data Wrangling In R with group_by() and summarise()
9:14
Equitable Equations
Рет қаралды 16 М.
Stylizing the appearance of facet labels with ggplot2's facet_wrap (CC236)
23:38