Skip to content

Day 3 Practice

Meghan Balk edited this page Mar 29, 2018 · 2 revisions
  1. Create a new file and save it as "Day_3_Practice.R"
  2. Import the dataset mtcars.
  3. How many cars have cylinders that are greater than or equal to 6?
  4. Make a data frame of cars that have 8 cylinders. Name it mtcars.2.
  5. How many cars are in this dataset?
  6. What is the mean mpg of the cars with 8 cylinders?
  7. How would you find the mean mpg of cars with 8 cylinders without creating a subsetted data frame?

Be sure to annotate what you do as you go!