df.matrix: Matrix of a Factor Column This is an example function named...

Description Usage Arguments Value

Description

Matrix of a Factor Column This is an example function named 'df.matrix' which convert a factor columns levels(k-1) to different columns with value 0 and 1.

Usage

1
df.matrix(x, sep = ":")

Arguments

x

a data frame to be converted into matrix

sep

the delimeter to be used for seperating column and levels

Value

the matrix dataframe of factor column


prk327/AtConP documentation built on May 26, 2019, 8:33 a.m.