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

  Рет қаралды 22,329

R Programming 101

R Programming 101

Күн бұрын

Пікірлер: 60
@RProgramming101
@RProgramming101 Жыл бұрын
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 жыл бұрын
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 2 жыл бұрын
I swear you're unbelievably talented at all levels of creating content
@RProgramming101
@RProgramming101 2 жыл бұрын
So nice of you - thanks for the great feedback!
@brittnyfreeman3650
@brittnyfreeman3650 2 жыл бұрын
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 жыл бұрын
Fabulous !!! Just excellent. You have been absolute savior! Thank you very much.
@RProgramming101
@RProgramming101 2 жыл бұрын
Glad it was helpful! Thank you :)
@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
@RProgramming101
@RProgramming101 2 жыл бұрын
More to come! Glad it was helpful! ☺
@romanvasiura6705
@romanvasiura6705 2 жыл бұрын
Thank you for this amazing channel!
@RProgramming101
@RProgramming101 2 жыл бұрын
Thank you too! Glad you enjoyed it!
@godlovemehaha
@godlovemehaha Жыл бұрын
Just found your channel. Very helpful . Thank you
@RProgramming101
@RProgramming101 Жыл бұрын
Glad it was helpful! You're welcome :)
@moisengwa9904
@moisengwa9904 2 жыл бұрын
Fabulous teacher!!! Could you please show us how to add the numbers to the bar charts?
@tuanatnguyen9878
@tuanatnguyen9878 2 жыл бұрын
Really detailed and useful tutorial. Thanks a lot
@RProgramming101
@RProgramming101 2 жыл бұрын
Glad it was helpful! Thank you for your feedback!
@annasognosia
@annasognosia 2 жыл бұрын
Thank you. It's very easy to follow.
@RProgramming101
@RProgramming101 2 жыл бұрын
Glad it was helpful! Thank you!
@onkar7651
@onkar7651 2 жыл бұрын
super useful in visualization!!
@RProgramming101
@RProgramming101 2 жыл бұрын
Glad to hear that!
@patrickrankin184
@patrickrankin184 Жыл бұрын
Great videos. Thank you
@RProgramming101
@RProgramming101 Жыл бұрын
Glad you like them! Thanks
@minjeoungkim9303
@minjeoungkim9303 2 жыл бұрын
Really helpful. Thanks!
@RProgramming101
@RProgramming101 2 жыл бұрын
Glad to hear it! Thank you for your feedback!
@zanjeeltariq9079
@zanjeeltariq9079 Жыл бұрын
THANKYOU SO MUCH!!!!!!
@InsideBest365
@InsideBest365 Жыл бұрын
Learned a lot thanks
@andresrengifo7801
@andresrengifo7801 2 жыл бұрын
¡Thanks this content expand the universe of r !
@RProgramming101
@RProgramming101 2 жыл бұрын
Thanks for watching and you are welcome!
@BulLiT2401
@BulLiT2401 2 жыл бұрын
Thank you so much!
@RProgramming101
@RProgramming101 2 жыл бұрын
You're welcome!
@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 😂
@mugomuiruri2313
@mugomuiruri2313 2 жыл бұрын
Very much explained.goood Afrika.kenya
@RProgramming101
@RProgramming101 2 жыл бұрын
Glad you liked it
@castel32
@castel32 9 ай бұрын
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 2 жыл бұрын
Wonderful
@RProgramming101
@RProgramming101 2 жыл бұрын
Thank you! Cheers!
@Sports_Encyclopedia
@Sports_Encyclopedia 2 жыл бұрын
Make a playlist regarding geo-density in mapping
@RProgramming101
@RProgramming101 2 жыл бұрын
Great suggestion! Thanks
@laynehansen6216
@laynehansen6216 11 ай бұрын
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.
@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 …..
@itamar.j.rachailovich
@itamar.j.rachailovich 3 ай бұрын
The following command doesn't work for me gss_cat %>% select(race) %>% table() it says "Error in select(., race) : unused argument (race)" However, changing it to the next command solve the problem, and I get the same output as in your video: gss_cat %>% pull(race) %>% table()
@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 жыл бұрын
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
@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
@jackymo820
@jackymo820 2 жыл бұрын
Don't quite get the difference between select (race) and pull (race)
@souhaibsebbane5623
@souhaibsebbane5623 2 жыл бұрын
@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?
@mphandejohn
@mphandejohn 2 жыл бұрын
I now get forcats
@RProgramming101
@RProgramming101 2 жыл бұрын
Great!
@angie-mx5gv
@angie-mx5gv 2 жыл бұрын
Thank you so much!
@RProgramming101
@RProgramming101 2 жыл бұрын
Glad it helped!
Explore your data using R programming
25:39
R Programming 101
Рет қаралды 113 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Loops using R programming
13:37
R Programming 101
Рет қаралды 17 М.
Factor Variables in R
9:51
Equitable Equations
Рет қаралды 18 М.
Describe and Summarise your data
19:44
R Programming 101
Рет қаралды 58 М.
Factors in R: Recode, Relevel, Reorder
10:47
Equitable Equations
Рет қаралды 9 М.
Lubridate - how to manipulate date and time data in R
18:05
R Programming 101
Рет қаралды 13 М.
t-test and interpreting p values using R Programming
26:53
R Programming 101
Рет қаралды 90 М.
Bar charts and Histograms using ggplot in R
18:22
R Programming 101
Рет қаралды 70 М.