Question: Review the sample code for this week's module, as it demonstrates marginal, joint, and conditional probability using the diamonds sample dataset provided by ggplot2 (a

Review the sample code for this week's module, as it demonstrates marginal, joint, and conditional probability using the diamonds sample dataset provided by ggplot2 (a package from R's tidyverse). Open RStudio. Create a new project (File -> New Project). Select New Directory. Select New Project. Name the directory Assignment3. Change the project's path/subdirectory, if necessary. Click the Create Project button. Be sure to use the following to load the tidyverse: library (tidyverse) This assignment will use another sample dataset called mpg. This dataset contains fuel economy data for 38 models of cars (each of which had a new release) between 1999 and 2008. For more information, use help("mpg") in RStudio. After loading the tidyverse with the command above, enter mpg to display the first few rows of the data frame. mpg # A tibble: 234 x 11 manufacturer model displyear cyl trans dry cty hwy fl class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
