Working with Variables and Data in R | R Tutorial 1.8 | MarinStatslectures

preview_player
Показать описание


In this video tutorial you will learn how to check variable names, variable types, extract a variable from a dataset, and produce summaries for data based on the type of data in R.

▶︎ How to check variable names for datasets in R? We will use names function in R
▶︎ How to extract a variable from a dataset in R? We will learn to use $ or Attach function in R
▶︎ How to check the variable type (numeric or categorical) in R? We will use class function in R
▶︎ How to ask R for different levels/categories of a categorical variable? levels function in R will be used
▶︎ How to produce summary for variable in R? summary function in R will produce summary of variables based on their type, for example numeric values will be summarized by mean, median and quartiles, and factors or categorical variables will be summarized as frequencies.


▶︎▶︎Download the dataset here:

▶︎▶︎Watch More:

◼︎ Table of Content

0:01:06 How to use the dollar sign "$" to extract the variable within a dataset in R
0:02:25 How to make objects/variables within a data frame accessible in R? introducing the "attach" function
0:03:20 How to un-attach the data in R? working with the "detach" function
0:04:04 How to check the type or class of a variable in R? using the "class" function in R
0:05:04 How to use the "levels" function in R to find out the different levels/ categories for a factor/categorical data
0:05:34 How to produce summaries for data in R? learn to use the "summary" function in R

This video is a tutorial for programming in R Statistical Software for beginners.

Follow MarinStatsLectures

Our Team:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer and Creative Manager: Ladan Hamadani (B.Sc., BA., MPH)

These videos are created by #marinstatslectures to support some courses at The University of British Columbia (UBC) (#IntroductoryStatistics and #RVideoTutorials for Health Science Research), although we make all videos available to the everyone everywhere for free.

Thanks for watching! Have fun and remember that statistics is almost as beautiful as a unicorn!
Рекомендации по теме
Комментарии
Автор

You're better than explaining this than my professor...Thanks for putting this into a format people can actually understand. You knocked out in 10 minutes what he hadn't adequately demonstrated in over an hour.

retearwqtaet
Автор

I know these were uploaded in 2013 but they feel more relevant than the confusing tutorials they have us doing in postgrad, this year! Saved my life. I was so stuck in stats, getting behind and struggling to progress. Not because I didn't understand the concepts of statistics, but because I couldn't figure out where I was going wrong in R. Thank you!

Nipz
Автор

You have explained R in a very simple way. I loved it.

MrKocharrohit
Автор

I JUST BEGAN LEARNING THIS R STUFF AND IT WAS SOOOO HARD. THE TUTORIAL VIDS ARE SO GOOD AND REALLY HELPED ME OUT! THANK YOU!

郭宝淇-pw
Автор

Your videos are excellent! I was into R for some time. Your videos gave me good clarity of R and its usage in a very systematic way. It helps a lot in my research work.
Thank you so much!!

simonambat
Автор

Mike, your tutorials are wonderful.  They are so straightforward and easy to follow.  A lot of tutorials I find online deliver the content in a somewhat 'look how much smarter than you I am' kind of way.  I don't get that from you.  You clearly love what you do, and I thank you for putting these videos together.  I think I am finally understanding this stuff.

warpenator
Автор

Your videos are excellent. In addition to the high quality content, your clear and focused voice track enhance the learning experience. Many thanks!

rogerrosewall
Автор

Thanks for the tutorial. At 1.5x speed, its perfect :P

CollMomo
Автор

Thanks for these videos. I've been using R for about a year and found many of its quirks frustrating until I found your videos which work through things in much the same way a user needs. Really useful, thanks.

batchrocketproject
Автор

Thank you! Just getting started but this is making me feel more comfortable with the language

IamJustinYoung
Автор

If you are have an issue with some of the "Factor" type Names being listed as "Characters" you can change them when importing your Data. When importing, go to the data preview window and click "Character" under the [Gender, Caesarean and Smoke] categories and a drop down list should appear allowing you to change them to "Factors".

Please thumbs this up for visibility.

nevinpicard
Автор

For once an R tutorial that starts from the beginning and explains the details of R and its idiosyncrasies. Thanks

markkennedy
Автор

Thank you so much! Tried learning R at least 4 times over the past few years and each time lose faith as it's assumed you already understand the principles of coding. I couldn't even get my data to read. You've saved me a lot of pain, THANK

sharnalunn
Автор

You're a hero man. This is only thing in a new job I don't know and your tutorials are the only way I think I can be completely covered on R.

DL-flul
Автор

You're tutorials are truly the best. I'm taking a programming course and your tutorials are lifesavers. I only learn through hands on and visual teaching methods. This is really driving the materials home, not to mention saving me from a lot of wasted time and a ton of headaches! :)

TJ-gpto
Автор

You have some badass tutoring skills! Really appreciate all the effort you have put into making these. Awesome and easy to understand, helped me a lot.

vyshakkakkat
Автор

All of your videos are so helpful for me. I used to use my PC for listening to musik, but now I have to deal with R in connection with my master thesis. I´ve watched many R tutorial videos, since I found yours and I just want to tell you, that your doing a great job. Thank you so much!

Kind regards from Germany

MaschlNES
Автор

Thank you you helped me a lot with this video. Even though it is already 5 years old. Everything still works.

emelytja
Автор

Thank you Dear Marin, with your easy way of lecturing method you turned the dark to light, I was confused before i got your tube. No words to express how your tutorial is useful in my life.

TheArabari
Автор

I am teaching statistics at University; I am using STATA for individual research, but it is too expensive to use in Undergraduate STAT class. Your lecture or R is just awesome. You just use a minimal explanation for lecturing R and it really helps. I plan to suggest this website for students who take my course in advance to be familiar with R, It will really save time and make us happier.Sincerely appreciate your effort !!!

김중백사회학과