as.data.frame.foldert: foldert to data frame

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/as.data.frame.foldert.R

Description

Builds a data frame from an object of class foldert.

Usage

1
2
## S3 method for class 'foldert'
as.data.frame(x, row.names = NULL, optional = FALSE, ..., group.name = "time")

Arguments

x

object of class foldert with the same row names. An object of class foldert is a list of data frames with the same column names, each of them corresponding to a time of observation.

row.names, optional

for consistency with as.data.frame. as.data.frame.foldert does not take them into account.

...

further arguments passed to or from other methods.

group.name

the name of the grouping variable. It is the name of the last column of the returned data frame.

As the observations are indexed by time, the default value is group.name = "time".

Details

as.data.frame.foldert uses as.data.frame.folder.

Value

as.data.frame.foldert returns a data frame.

Author(s)

Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard

See Also

foldert: object of class foldert. as.foldert.data.frame: build an object of class foldert from a data frame. as.foldert.array: build an object of class foldert from a 3d-array.

Examples

1
2
3
4
5
data(floribundity)
ftflor <- foldert(floribundity, cols.select = "union", rows.select = "union")
print(ftflor)
dfflor <- as.data.frame(ftflor)
summary(dfflor)

dad documentation built on March 16, 2021, 9:05 a.m.