Question: mean ( wine$price, na . rm = 1 ) # CG Q 5 a # Use the mean ( ) function to calculate the average
mean wine$price, narm
# CG Qa # Use the mean function to calculate the average points for the Napa Sonoma subregion.
##### Your code should pe a single line and will use the square brackets for subsetting.. wine$
# CG Qb # Use the mean function to calculate the average price for the Napa Sonoma subregionusing a single line of code.
# CG Q # Now we'll practice our counting skills again.
##### The rating scale being used by these tasters orignally had as the highest possible score
##### and now goes to for exceedingly delicious wines.
##### Use the sum function on a logical vector that checks for whether points are greater than or not
#### to count the number of wine ratings with more than points.
# CG Qa # Now we'll practice subsetting on more than one criteria. ##### Use the mean function to compute the average points for wines ##### that are chardonnay and from the Napa Sonoma subregion.
# CG Qb # More practice subsetting on more than one criteria. ##### Use the mean function to compute the average price for wines that are
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
