mat2dat: Convert a matrix to a dataframe with ID names

Description Usage Arguments Examples

Description

This function converts a matrix to a 3-column dataframe with dimnames and values

Usage

1
mat2dat(x, value.name = "values", retainMissing = FALSE)

Arguments

x

a matrix

value.name

a character string, name of values column

retainMissing

logical, if TRUE retain empty cells as records in dataframe

Examples

1

vjf2/SocGen documentation built on April 24, 2021, 10:59 a.m.