-
Notifications
You must be signed in to change notification settings - Fork 0
Day 1 or 2 Practice
Meghan Balk edited this page Mar 29, 2018
·
2 revisions
- Open a new file, save it as "Day_1_Practice.R"
- Import the dataset mtcars
- Look at the structure of the data. How many columns are there? How many types of cars?
- Calculate the average miles per gallon (mpg) - the long way. Save this as "avg.mpg". What is the value? What type of class is avg.mpg?
- Calculate the standard deviation of mpg - the long way. Can you string the arguments together in one line? What is the value of the standard deviation of mpg?
- How would you do (4) and (5) with a built-in function?
Be sure to annotate what you do as you go!
Day 1 or 2
- Basics of R
- Variables and objects
- Functions and packages
- Conditionals and logical operators
- Practice
- Recap
Day 3
Day 4
Day 5
Extra