Complete the following exercises in a new R script you create in R studio
Write a script with your name and date at the top. Now write some code that first clears your working directory, and then loads the dplyr package. Note: if you have not successfully installed the dplyr package yet from CRAN, you will have to do that first.
Open the dplyr vignette using the vignette()
function. Scroll through the vignette. What is your favorite tool in dplyr? Write a brief description of it, in your own words, in a comment
Using the iris dataset and dplyr functions, write code that (1) creates a new column, called area
, that is the petal length times the petal width, and (2) calculate the maximum petal area of each species.