Skip to content

vals() function #13

@mdsumner

Description

@mdsumner

or maybe just get used to as.vector(t(x))

m <- matrix(1:12, ncol = 3L, byrow = TRUE)
as.vector(m)
#>  [1]  1  4  7 10  2  5  8 11  3  6  9 12

as.vector(t(m))
#>  [1]  1  2  3  4  5  6  7  8  9 10 11 12

Created on 2023-03-27 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions