R programming in one hour - a crash course for beginners
Vložit
- čas přidán 26. 04. 2022
- R programming is easy. In this video, I'll walk you though how to clean your data; how to manipulate (or wrangle) your data; how to summarize your data; how to create tables and describe your data; how to visualize your data using ggplot (a powerful data visualization package that I use to create bar charts, boxplots, scatterplots, histograms, line graphs and more) . And of course how to analyze your data. The data analysis includes using hypothesis testing and p-values to make inference about a population using sample data. To do this, I'll teach you how to do a t-test, ANOVA, chi-squared test and linear regression models. So if you're a data scientists or researcher doing statistical analysis or some kind of quantitative analysis of data, this video is for you. I cover all of this in one hour.
Get my FREE cheat sheets for R programming and statistics (including transcripts of these lessons) here: www.learnmore365.com/courses/rprogramming-resource-library
(I am adding shortcuts for myself, so if some of them are incorrect don't complain)
00:00 - intro
04:00 - basics
06:52 - Built in data sets to practice with
07:30 - installing and using packages
11:44 - Data structure and types of variables
[ ]
16:04 - Changing variable order
16:31 - changing variable name
17:00 - changing a variable type (factor)
18:12 - changing factor levels
19:36 - filter rows
20:31 - recode data
21:14 - dealing with missing data
22:00 - dealing with duplicates
23:31 - manipulate (create or change a variable[mutate])
23:21 - conditional change (if_else)
c.d.n
(I am adding shortcuts for myself),
i don't think so lmao, just shitting your poo in the comments to get some virtual attention
No complains 😂
no complains
i wanna know the link of star war data since i cannot find it, thanks!
I think it is in R once you download the tidyverse package@@jesshsu6684
For those who cannot see the starwars data set:
if (!require(dplyr)) install.packages("dplyr")
library(dplyr)
starwarsDF
Thank you
Thank you
Thank you sir!
still works - thank you!
This is a complete semester course described in detail in an hour. My Professor, who is paid to teach this course, will be unable to cover even half of what is shown in this video until the semester is through. When I raise inquiries about specific codes in class, the Professor becomes enraged. Greg, I can't thank you enough for this video and so many others. R programming is quickly becoming second nature to me. How can I get access to the linear model and other graphs you used to demonstrate some aspects of the programming? Thank you very much. You are simply the best!
So nice of you - thanks for the great feedback, Emmanuel. Much appreciated!! I'm glad that you found it helpful! 😊🙌👍
Lol this is so true
This is too familiar! Thank you for this channel it's a lifesaver
No words can express my deep gratitude. Thank you so much, Mr. Greg. Please, keep up the great work.
Thanks for the fantastic feedback!!
Amazing smooth
I cannot tell you how excited I am that I finally understand what I am doing in R! Granted, I've spent about 8 hours working through this 1 hour video, but it has finally "clicked." Thank you!
Great job!
I was searching for videos on R programming and stumbled upon your channel. The way you explain the concepts is so wonderful. Simple and precise. I like the fact that in many of your videos, you do touch upon topics that were taught in a previous video.
This video is like a refresher just before one is about to give his / her exam.
Thank u so much for putting in the hard yards and making life for us wannabe data analysts slightly better. Wish u the best in life!!!
Thanks a mill for this, Greg! I've watched the video 4 times and worked through all of it in RStudio. Not only did I learn a lot of R, I also did grasp some concepts in statistics that I've struggled with before. There's a big difference in the level of understanding when trying it out on your own. Awesome! I highly recommend putting in the time, it was so worth it. I've now downloaded the visualization cheat sheet as well, but that I think I'll have to save until the next weekend ;) Hope your weekend was just as great.
So nice of you - thanks for the great feedback Sofia!
I’ve been learning python for the last few months and haven’t used R in a long time… this is the perfect refresher I needed for an upcoming interview I have! Excellent stuff :-)
Greg, I absolutely love your teaching style. I was flip-flopping between R and Python and you have convinced me that for data exploration, graphing and statistical analysis, R is the best bet. No doubt I will still learn Python but your style of teaching is what has got me convinced and serious about learning R. I can't thank you enough.
The content is just wonderful. Much appreciated. I am studying environmental management and have no bg in programming. However, I always heard of R. With the help of your video, I learnt a lot of things. Cheers
Thank you so much Greg for sharing your hard-earned knowledge with the rest of us. You are doing a wonderful job; it is clear that it takes time and passion to make these informative, well-structured videos and for that I am greatly thankful. Wish you all the best :)
I appreciate that! Thank you very much!
Thank you for the video , I cannot begin to tell you how awesome it is that you explain everything in great detail, and make it way easier to understand.
Your video was so helpful , I am doing an online course and I have learned more in the last hour than I have in 2 weeks...
Again, thank you
Merci beaucoup pour la vidéo. I'm experienced in SAS and Power BI, but did not know where to start on how to program in R. Your video touched upon all the important themes we need to know to get started.
I really appreciate the animation. Kept the lecture a lot more engaging and clear when you were reviewing the code
Glad you like it.
Super helpful and so easy to follow! Respect for the professor Greg!
I've watched all 16 videos. Thank you very much for so much time to explain it all, Greg! Lots of thanks from Brazil! Dabadum!
Glad you like them! Thank you :)
Data Programming exam in 12 hours, wish me luck :3
This is amazing and very helpful for really getting started in R. Thank you so much!
This category of videos boost up our interest on learning the programming languages .
Thank you so much! I looked through a lot of tutorial videos but found them slow, boring and confusing. But you are awesome teacher! 👌
I cannot thank you enough. This has been such a huge help. I will be sharing this with the rest of the students in my Data Science unit and in the university Discord for future students. Absolutely brilliant teacher.
Glad it was helpful! Thank you!
Thank you so much for this course, very efficient and easy to understand!
I have learned so much, so much here!
Concise, clean, and amazing tutorial.
Thank you so much!
Thanks for the great feedback :)
Thank you so much for this rich yet concise introduction of R for data analysis. I found it so informative and beginner-friendly.
Glad it was helpful! Thank you very much!
Thank you! I'm self-taught in R a number of years ago. Getting back into it now, and your videos are excellent. I LOVE tidyverse! And your approach is really helping me re-learn and improve. Thanks
Awesome! Thank you for your great feedback! 🙌
omg I have been watching TONS of tutorials to no avail. I wish I'd found you weeks ago!
I agree with your approach of using in-house data for these demonstrations 100%. I can't count the number times I have started a lesson (and even paid for it) and quit in frustration because I could not access or find the data they used. Some instructors use some "obscure" data from a R package but don't bother telling you it came from. Others use "external" data that is either no longer accessible (or needs a signup or API) or in has been "wrangled" from the original form into some other shape. Many times I have had to reverse engineer or simulate the data on my own. If you are trying to teach some specific task or topic then this misses the point of the lesson (reminds of my high school when our math books were in Swedish - not my native language - I and I was busy trying to figure out what the words meant rather than doing the math) .
So thanks for be so good about using built-in data rather than some obscure data!
Thanks for the great feedback Haraldur!
the word I love you doesn't currently express how grateful I am. This is super helpful!!! Thank youuu!!
You are most welcome. Thanks for the lovely feedback.
Am immensely grateful. I am going into this and will come back to say how am doing. Thank you
Just what I needed. What a brilliant video! Can only agree with the top comments. I have programmed many languages, and found you made it both entertaining and I think you covered everything I wanted to know to get an introduction - you make it look easy peasy lemon squeezy - By the way, you didn't mention your name ;D just thinking that would be helpful, as maybe you are doing a conference sometime, then I would definetly want to see you present.
This channel has been so helpful to learn and continually reference. Thank you!!
You are most welcome.
Awesome! All your videos are extremly helpful with my bachelor thesis!
Glad it was helpful! You are welcome
Wow, very quick and efficient way of learning how this program works!
Learned so much while following this course, have subscribed and looking forward to more videos created by you.
Thank you!
I appreciate the kind words. Your support encourages me to create more content that you'll enjoy!
Hi Greg, thank you so much for creating this channel on R programming. Just subscribed. I am amazed to find you have already created so many videos already. You ROCK!!
Welcome aboard! Thank you for subscribing!
I've watched four tutorials on R programming and yours is the best one! Not only concise, quick and relevant, but the way you talk about these topics is truly entertaining and captivating :) Thank you
Wow - what a nice thing to say (thanks!!)
❤❤Thanks this was just the introduction I needed for R
This video is definitely a life saver! I watched it twice before my midterm exam, and went from barely knowing how to import a csv file and do basic work with it to getting a 90 in my midterm! This even video even helped me get the statistics base knowledge needed to properly understand and analyze the data that is provided by the codes in the video. Again, this is a lifesaver for everyone trying to understand statistics and basic RStudio coding! Forever grateful for all your help!
Wow - what a nice thing to say (thanks for your amazing feedback!!)
eventhought a lot of stuff don't make sense to me, this is still a great video and serve as my foundation to go forward. Thank you so much sir
Thank you Dr. Greg, very much appreciated - fantastic videos
Amazing video! Thanks for this. The only explanation I found missing in the video is that you need to code library(package_name) for the packages each time you open up Rstudio in order to use the package again.
Wonderful video!!! I can't recommend it enough! I'm an SPSS user, but I'm learning R programming to be able to run analysis anywhere I go for free (and on the run lol), and then to be able to help others with their own data analysis when they don't have SPSS. R is becoming a more universal package in my opinion. Thank you so much Greg Martin for all your efforts and dedication to teaching global minds :) keep it up!
Glad to hear that you enjoyed the video and that you're so enthusiastic about R (i really like it too).
Wow Rana - what a nice thing to say! Thanks!!
Absolutely fantastic! Hugely helpful, thank you!!
I was just getting started to jump into my Statistical Programming Course but I hate going into things blind. This was an EXCELLENT resource i was intimidated by R programming. This video honestly gave me a huge boost in confidence. Thank you.
Glad you’ve found it helpful.
Wow! I finally perfectly understand how to comfortably use the pipe operator in R! Thanks a lot ❤ !
Glad it helped! Thanks for the great feedback
Great job! Very informative and helpful. Thanks a lot.
Dr. Greg Martin, you close R programming in a bottle. Very good and Thanks
Great video. Thank you so much for your quick and accessible introduction to programming in R. 10/10
Thank you for watching and for your kind words! I'm glad you enjoyed the video.
Total gratitude!, even some statistics theoretical aspects are much more clear for me now.
Glad it was helpful! Thank you for the feedback!
Absolutely amazing. I have to share this 🙏
Thanks for the video. I got what I needed for work. I have to translate some R code into Python to run in Airflow for work. 😁
I think I understand the basics. I need to learn more about character stripping, substrings, and character replacing in R now. I have a script that replaces a certain number of spaces with one comma. Pretty simple.
Thank you so much for this. It was REALLY helpful!
You are Amazing! Thank you. It took me 6 hours because I stop the video and practice.. But, I learned the basics of R in even 58 minutes. Keep it up
I'm thrilled that my video helped you or provided you with useful information. Thanks for letting me know!
as albert Einstein once said “If you can't explain it to a six-year-old, then you don't understand it yourself” . you are the best.
Thanks for the feedback. Much appreciated.
This was extremely helpful I'm understanding R statistics and building up my confidence in my data analysis skills
thanks for the feedback
Oh My Good-ness!!! I just can-Not believe I just stumbled upon such a helpful video! Thank you so much!
it was worth it watching and practicing the whole long hour
bro your a herooooo you saved meeeee, and grant your self a long term subscriber and long life student, keep up mann
You really made it super duper easy, thanks a lot for zooming!
Glad it was helpful! You're welcome :)
Proper legend to have such amazing videos on R. Bonus that we both from SA. If you had a udemy course in R I would purchase it in a heartbeat
hi there - I think that I do have some on Udemy and also at www.learnmore365.com (thanks for the feedback)
This video works great. I only learn R as a side interest and part of the Exercism #12in23 challenge. But this showed me very well on what R can do and how to use. it.
Very nice! My head is spinning, but the material presentation was excellent. Thank you.
Glad you enjoyed it! Thanks
Wonderful job explaining this, I thank you so much for putting this video out here for free! I learned and re-learned so much of these that I previously were not able to understand in class!
Thank u for this video I have a big technical interview coming up and this gave me so much confidence
Glad it was helpful! Thank you :) all the best on your big technical interview coming up!
This was very helpful, thanks!!!!
Excellent Explanations overall..my deepest thanks to you
You are most welcome! Thank you for the feedback.
Another excellent tutorial from Greg. We expect another 1-hour R video soon , may be a series rather than short videos why not?....Thanks again
Good idea! Thank you for the feedback. Glad you enjoyed it!
Great explanation. Thanks Greg
Thanks for watching!
Very good instruction. Well understood. Thanks a lot.
What a nice thing to say - thanks!!
This has been really helpful for me in my current job. Thanks you 👍 ... Any chance you could do Plotly and Markdown HTMLs in an hour long episode? ❤😅
Thank you so much for this video! I am a theoretically strong, data weak political scientist who is trying to learn more about using R. This was very helpful.
Thanks for the feedback, Shannon. Much appreciated. I'm glad that you found it helpful. You can do it! 😊
you made my life easy with Shift+Ctrl+M, thank you very much!!!!
Glad I could help! Thank you for the feedback.
Very good course i agree. An hour is the official play time but obviously you will need a lot more than that to learn this, Greg is clear but very fast and you might find like me 0.75 playback speed sounds a bit more normal! And then you must pause a lot, maybe check stuff, try an alternative, etc etc
I love the speed of your speech. Definitely, the content is more than 3 hours LOL. Very useful!
Glad you enjoy it! Thanks for watching!
Excellent lecture! Thank you!
Glad you enjoyed it! Thanks for the feedback.
Awesome. Thanks for putting this out here.
My pleasure!
Amazing video. Quick question. When going over the summarise code at the 30:00 mark. Can you also use the mutate function to add those columns because that seems to be what is happening within the summarise function. Or is that innapropriate or considered "bad code"? Thanks. Love the content
Dude you are a godsend! This tutorial is 10/10 for a person wanting to learn R with absolutely no programming experience!
I hope your channel grows and you produce more R content!
Happy to see this on Guru purnima.thank you for the video sir .Happy guru purnima.
So nice of you! Thank you for the feedback.
Thanks a lot. I had a great time going through this video wtih you. I appreciate it a lot.
Glad you enjoyed it! Thank you for the feedback.
Can't find the right words to say thank you. the word still have good persons that can positively impact thank you also for the pdfs I can say that you made them with heart and passion
Wow, thank you!! Cheers
loving the occasional 'boom shaka laka' hahaha, very entertaining and informative. thank you
Greg, thank you for this amazing channel.
Each lesson is very valuable for me.
This video has a lot of stuff which I would like to discover more deeply.
Definitely I need to study more about different kind of testing (such as t-test, anova etc...). From your video I heard about it at fist time, but nevertheless it will be very interesting to explore it.
I've finished to watch fist playlist for begginers and will start to watch next one (data manipulation).
Wish you all the best 😀"boomshakalaka" 😄
So nice of you - thanks for the great feedback Roman.
Much appreciated!!
@ 17:00 When explaining Re-Factoring you should explicitly clarify Factoring and distinguish between "Re-Classing, Re-assigning, Re-Typing, Re-Categorizing because you used the words pretty loosely and it was just an overall confusing section. I had to watch another video to explain what it was you were even talking about . Im a beginner but i was able to keep up perfectly up until that point.
Edit* Yo This section is a nightmare to understand if youre not actively googling what the words that are coming out of your mouth mean.
For example "...R hasn't identified it as a factor or categorical variable." Whats a Factor? Whats a Categorical Variable as opposed to a regular one? What are the common types of Factors and variables?
Its a crash course but there are things that are contextual pieces being glossed over. As a refresher course this is probably an awesome video, for someone with 0 experience then you might need a tutorial along side this tutorial.
Excellent video
Great content Thank you. Visualization at 30 min and Ending at app 40min.
Thank you for the feedback. Much appreciated !!
well done! it's just so fun to watch 😁
Thank you! 😃 Cheers!
Bro! Thank you this is amazing
Thank you for helpful videos !
I'm glad that you found it helpful. Thanks!
An excellent summary
Thank you kindly! Glad you liked it :)
LOVE !! LOVE!! lOVE!! this video,,,,Amaaaaazing!! THANK YOU !!
Glad you enjoyed it! Thank you!
It's amazing work. Next time please drop the pdf of code or R code in the description. It'll be so much better. Thank you.
Thank you so much Greg, can you please tell me what software you use for video editing?
Thanks in advance
Excellent! Excellent! Excellent! Thank you!
Thanks 👍🏻👍🏻👍🏻
You are very impressive and genius thank you
Thanks for the feedback. Glad you liked the video
Hey i loved this video and because of this amazing video i might learn something new. So i wanted to how to do the setup for rstudio? Meaning is it free and if so do i need to put some setting or click some options while downloading or just default. I wanna get started on r and practice so i need to know
Hi Greg, this is great, My wife is taking this course and I looked at several videos that just made my head spin. You talk down to earth.
LATER EDIT OF POST: I think my R studio had become corrupted, I restarted and it worked but still gave the error.
ORIGINAL POST:
I am having trouble with one ggplot code, the smooth. I think I have written exactly what you did but get this error: geom_smooth()` using method = 'loess' and formula 'y ~ x' (converted from warning) span too small. fewer data values than degrees of freedom..
I wonder if the android quadrant does not have enough points to create the smoothing line and this stops the operation.
I place notepad beside your video and write everything on it and then copy and past to R studio and save all of my lessons so I can copy and paste later and just change perimeters.
Again Thank you so much
Hey Greg I do not have the starwars dataset for some reason. Do you know why or how or where I could get the dataset?
How did you draw the graphs in the statistical analysis section? Starting from t-test all the way to linear model. Using the code I only saw outputs in the console.
Thank you. You are the best
thanks :)