Answered step by step
Verified Expert Solution
Link Copied!

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 Q0 # Use the read.csv() function to read in the Wine.csv file. Name it wine and don't forget to use the strings=T 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: Users/first.last/Desktop) in it.
# CG Q1a # How many observations (rows) are available to you? Use the nrow() function.
# CG Q1b # 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 Q2a # Use the names() or str() function on the wine dataframe to view the exact spellings of the column names.
# CG Q2b # 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 Q3a # Use the sum() and
is.na() functions to find the number of missing values in the wine dataframe.
# 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago

Question

At what level(s) was this OD intervention scoped?

Answered: 1 week ago