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


BhavanamRajenrda/Brr documentation built on May 15, 2019, 9:12 p.m.