Learn R Programming

dad (version 4.1.6)

getcol.foldert: Select columns in all elements of a foldert

Description

Select columns in all data frames of a foldert.

Usage

getcol.foldert(object, name)

Value

A foldert with the same number of elements as object. Its \(k^{th}\) element is a data frame, and its columns are the columns of object[[k]] given by name.

Arguments

object

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

name

character vector. The names of the columns to be selected in each data frame of the foldert.

Author

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

See Also

foldert: object of class foldert.

rmcol.foldert: remove columns in all elements of a foldert.

getrow.foldert: select rows in all elements of a foldert.

rmrow.foldert: remove rows in all elements of a foldert.

Examples

Run this code
data(floribundity)

ft0 <- foldert(floribundity, cols.select = "union")
getcol.foldert(ft0, c("rose", "variety"))

Run the code above in your browser using DataLab