Please help me with my class problem set! The homework is too hard for me.
Use the diamonds data from
ggplot2 package to perform the following tasks (when appropriate, use
round() to show 3 decimal places):
data(diamonds) # load the diamonds data
1.1 What proportion of diamonds are between .30 and 1.08 carats?
1.2 How many of the diamonds have equal x and y dimensions?
1.3 How many of the diamonds have a carat less than the mean?
1.4 How many diamonds have a Premium cut or better? Note that cut is an ordered factor so the levels are in order.
1.5 Which diamond has the highest price per carat? What is the value?
1.6 Make boxplots of the diamond price for each cut.
1.7 Find the 95th percentile for diamond price. Try the