Skip to content

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

Description

@kaz462

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions