xtable2df: Converts a table to a data.frame

Description Usage Arguments Details Value

Description

Converts a table to a data.frame

Usage

1
xtable2df(xtable, dname2ID = TRUE)

Arguments

xtable

a table or an xtable object

dname2ID

a boolean variable indicating if the row names should be used as the index for the new table.

Details

If dname2ID is true the dimnames will be converted into a column that can be considered as an index column. If dname2ID is false then the dimnames of the tables remain as is. Once the dimnames have been converted into a column they are deleted.

Value

an R data frame with the data from the table plus the optional ID column made with the dimnames of the table


hmenag1/hmUtils documentation built on May 17, 2019, 4:34 p.m.