Learn R Programming

dad (version 4.1.6)

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

Description

Builds a data frame from an object of class foldert.

Usage

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

Value

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

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".

Author

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

Details

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

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

Run this code
data(floribundity)
ftflor <- foldert(floribundity, cols.select = "union", rows.select = "union")
print(ftflor)
dfflor <- as.data.frame(ftflor)
summary(dfflor)

Run the code above in your browser using DataLab