Question
Please complete in R Studio Diamonds are forever. library(tidyverse) data(diamonds) # Use subscripting operations to answer the questions below: (a) What proportion of diamonds are
Please complete in R Studio
Diamonds are forever. library(tidyverse) data(diamonds)
# Use subscripting operations to answer the questions below: (a) What proportion of diamonds are between .50 and 1.5 carats? (b) How many of the diamonds have equal x and z dimensions? (c) How many of the diamonds have a depth more than the mean? (d) How many diamonds have a cut of level `Very Good` or better? Note that cut is an ordered factor, so the levels are in order. (e) Which diamond has the highest price per carat (ppc = price/carat)? What is the value? (f) Find the 95th percentile for diamond price. Try the `quantile()` function. (g) What proportion of the diamonds with a price above the 95th percentile have the color `D` or `J`? (conditional proportion) (h) What proportion of diamonds with a clarity of VS2 have a Fair cut and a table below 56.1? (conditional proportion) (i) What is the average price per carat (ppc) for Fair cut?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started