numdfr: Constructor for 'numdfr' class

Description Usage Arguments Details Value Author(s) Examples

Description

Turna data.frame into a numdfr

Usage

1
numdfr(dfr)

Arguments

dfr

data.frame to coerce

Details

Preserves as much of the information as possible from the data.frame into the numdfr. Order of factors and some other details may be lost in the process.

Value

returns an object of class numdfr. Althoug you are not supposed to use this directly, this is a list containing two items:

mat

Numerical matrix representation of the data

lvls

list with for each column a character vector of the levels (length zero if the column wasn't a factor)

Author(s)

Nick Sabbe

Examples

1
iris.nd<-numdfr(iris)

NumDfr documentation built on May 2, 2019, 5:50 p.m.