Question: # CG Q 3 b # Use the sum ( ) and is . na ( ) functions to count the number of missing values

# CG Q3b # Use the sum() and is.na() functions to count the number of missing values in the points column.
# CG Q3c # Use the sum() and is.na() functions to count the number of missing values in the price column.
# CG Q3d # Use the sum() and is.na() functions to count the number of observations that have a price.
####### Hint: Since the ! means "not", putting an ! in front of is.na() counts the non-missing values.
# CG Q4a # Use the mean() function to calculate the average points for the wines in the dataset.
# CG Q4b # Use the mean() function to calculate the average price for the wines in the dataset.
# CG Q5a # Use the mean() function to calculate the average points for the Napa Sonoma sub-region.
####### Your code should be a single line and will use the square brackets for subsetting.
# CG Q5b # Use the mean() function to calculate the average price for the Napa Sonoma sub-region using a single line of code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!