Answered step by step
Verified Expert Solution
Question
1 Approved Answer
mean ( winespornts ) # CG Q 4 b # Use the mean ( ) function to calculate the average price for the wines in
meanwinespornts
# CG Qb # Use the mean function to calculate the average price for the wines in the dataset.
mean wine$price, narmT
# CG Qa # Use the mean function to calculate the average points for the Napa Sonoma
subregion.
subsetting.
# CG Qb # Use the mean function to calculate the average price for the Napa Sonoma subregion using 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.
f
# 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 ###### either chardonnay or are from the finger lakes subregion.
# CG Q # Use the median function to find the median price for
##### a Cabernet Sauvignon that is rated higher than points.
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