filmov
tv
Working with Variables and Data in R | R Tutorial 1.8 | MarinStatslectures
Показать описание
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!
Комментарии