Advanced-R-Solutions icon indicating copy to clipboard operation
Advanced-R-Solutions copied to clipboard

Answer updates needed for sec 2.4 Q2: is.vector(as.vector(mtcars))

Open kaz462 opened this issue 2 years ago • 1 comments

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

kaz462 avatar Jan 16 '23 23:01 kaz462