Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 1 / 1 point ( graded ) In the video, we use the function not _ inches to identify heights that were incorrectly

Question 1
1/1 point (graded)
In the video, we use the function not_inches to identify heights that were incorrectly entered
not_inches <- function(x, smallest =50, tallest =84){
inches <- suppressWarnings(as.numeric(x))
ind <- is.na(inches)| inches < smallest | inches > tallest
ind
}
In this function, what TWO types of values are identified as not being correctly formatted in inches?
Values that specifically contain apostrophes (), periods (.) or quotations ()
Values that result in NAs when converted to numeric
Values less than 50 inches or greater than 84 inches
Values that are stored as a character class, because most are already classed as numeric
correct
SaveSave your answer
Show answer
Submit
You have used 1 of 2 attemptsSome problems have options such as save, reset, hints, or show answer. These options follow the Submit button.Correct (1/1 point)Review
Question 2
1 point possible (graded)
Which of the following arguments, when passed to the function not_inches(), would return the vector c(FALSE)?
c(175)
c("5'8\"")
c(70)
c(85)(the height of Shaquille O'Neal in inches)
unanswered

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

More Books

Students also viewed these Databases questions