Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# CG Q 0 # Use the read.csv ( ) function to read in the Wine.csv file. Name it wine and don't forget to use
# CG Q # Use the read.csv function to read in the Wine.csv file. Name it wine and don't forget to use the stringsT argument.
###### Note that the Code Grade virtual machine computer already has the Wine.csv file in its working directory.
###### When submitting to code grade, use a read.csv statement that assumes the file is already in the working directory.
###### Do not submit code with setwd or that has a path for example: UsersfirstlastDesktop in it
# CG Qa # How many observations rows are available to you? Use the nrow function.
I
# CG Qb # How many variables columns are collected on each rated wine? Use the ncol function.
####### It is important to find the exact spellings of column names and entries within columns in the wine dataframe.
# CG Qa # Use the names or str function on the wine dataframe to view the exact spellings of the column names.
# CG Qb # Use the summary function on the taster twitter handle column to view the exact spellings of the tasters' twitter handles.
####### You will use this strategy of "looking" in a column to get exact sepllings to answer questions on this quiz.
####### It is important to know whether there are missing values NAs in your data
####### since NAs need to be addressed for certain functions to work correctly.
# CG Qa # Use the sum and
isna functions to find the number of missing values in the wine dataframe.
# CG Qb # Use the sum and
isna functions to count the number of missing values in the points column.
# CG Qc # Use the sum and
isna functions to count the number of missing values in the price column.
# CG Qd # Use the sum and
isna functions to count the number of observations that have a price.
####### Hint: Since the means "not", putting an in front of
isna counts the nonmissing values.
Accessibility: Unavailable
Focus
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