make_matrix: Create a matrix from a data.frame

Description Usage Arguments Value

Description

In order to make a matrix for RLQ analysis, we need to convert data.frames containing data into a matrix format. In these data.frames the first column holds what should be the rownames of the matrix.

Usage

1
make_matrix(df, rownm = "species")

Arguments

df

a dataframe. should be all numeric except for the first column, which gives rownames.

rownm

name of the first column, which is to become rownames

Value

a numeric matrix


SrivastavaLab/bwgtools documentation built on May 9, 2019, 1:54 p.m.