This homework assignment will test your overall R know-how, and allow you to practice using RMarkdown.
Complete the following tasks in a new R markdown script in R studio. For each question, first give a brief description (e.g., “Question 1: calculate the lowest miles/gallon in mtcars”), and then provide R code using "```" and the echo = TRUE argument. When finished, Knit your script together into an html report.
mtcars dataset? Print this value to the screen.mtcars dataset, make a new dataframe called cars.new that has only two columns: the miles per gallon and the number of cylinders.cars.new object, coerce the cyl column into a factor.cars.new.myFunc that calculates the min, max, and mean of a vector, and returns those values in a new vector.mtcars dataset (mpg).for loop that uses your new function to caclulate the min, max, and mean for each column in the mtcars dataset, printing the answer to the screen as it goes.apply to calculate the min, max, and mean of each column in mtcars using your new function myfunc.