tableToData {ltable}R Documentation

Function tableToData

Description

Constructs data.frames that fit glm{stats} or MCLogLin{ltable}, MCPower{ltable} modelling out of tables created with function table_f{ltable}.

Usage

tableToData(tname, numerictype="", orderedtype="")

Arguments

tname

name of the tables created with function table_f; object of data.frame class

numerictype

the character string that lists variable names separated by comma to be transformed to numeric class. Variable "Counts" shouldn't be listed

orderedtype

the character string that lists variable names separated by comma to be transformed to ordered factor class. Variable "Counts" shouldn't be listed

Details

Value

returns object of class data.frame

Author(s)

Ocheredko Oleksandr Ocheredko@yahoo.com

See Also

reshape

Examples

require(ltable)
data(iris)
iriscut<-with(iris, data.frame(PL=cut(Petal.Length,3),
                               PW=cut(Petal.Width,3)))
irist<-table_f(iriscut,"PL,PW")
irisd<-tableToData(irist, ordered="PL,PW")


[Package ltable version 2.0.4 Index]