mat2vec: Converts matrix to vector

Description Usage Arguments Author(s)

View source: R/mat2vec.R

Description

mat2vec converts a matrix to a NA-separated vector where the NA values separate either rows or columns.

Usage

1
mat2vec(mat, margin = 2)

Arguments

mat

the matrix to convert to a vector

margin

indicates whether NA values separate the rows (margin = 1) or the columns (margin = 2). Default value is 2

Author(s)

Marc Choisy


choisy/mcutils documentation built on May 29, 2019, noon