Рет қаралды 348,011
Working with Variables and Data in R and Produce Summaries: How to check variable names and types, extract a variable from a dataset, and produce summaries for in R! Practice with Free Dataset: (bit.ly/2rOfgEJ) Learn to Install R and RStudio? (bit.ly/2PYO8jS) 👍🏼Best Statistics & R Programming Language Tutorials: ( goo.gl/4vDQzT )
►► Like to support us? You can Donate (bit.ly/2CWxnP2), Share our Videos, Leave us a Comment and Give us a Like or Write us a Review! Either way We Thank You!
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:
statslectures.com/r-scripts-d...
▶︎▶︎Watch More:
▶︎Getting Started with R: bit.ly/2PkTneg
▶︎Graphs and Descriptive Statistics in R: bit.ly/2PkTneg
▶︎Probability distributions in R: bit.ly/2AT3wpI
▶︎Bivariate analysis in R: bit.ly/2SXvcRi
▶︎Linear Regression in R: bit.ly/1iytAtm
▶︎Intro to Statistics Course: bit.ly/2SQOxDH
◼︎ 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
0:06:30 How to convert a numeric variable to categorical/factor variable in R using "as.factor" function
This video is a tutorial for programming in R Statistical Software for beginners.
Follow MarinStatsLectures
Subscribe: goo.gl/4vDQzT
website: statslectures.com
Facebook:goo.gl/qYQavS
Twitter:goo.gl/393AQG
Instagram: goo.gl/fdPiDn
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!