Advanced-R-Solutions
Advanced-R-Solutions copied to clipboard
Answer updates needed for sec 2.4 Q2: is.vector(as.vector(mtcars))
Sec 2.4 Lists Q2 answer:
Note that as.vector() and is.vector() use different definitions of “vector!”
> is.vector(as.vector(mtcars))
> #> [1] FALSE
The above output is correct for R version before 4.2.2, but the output is changed to TRUE
by using R version 4.2.2
> is.vector(as.vector(mtcars))
> #> [1] TRUE