Question: 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

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 Databases Questions!