getcolfolder: Select columns in all elements of a folder

Description Usage Arguments Value Author(s) See Also Examples

Description

Select columns in all data frames of a folder.

Usage

1

Arguments

object

object of class folder that is a list of data frames with the same column names.

name

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

Value

A folder 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.

Author(s)

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

See Also

folder: object of class folder.

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

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

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

Examples

1
2
3
4
5
data(iris)

iris.fold <- as.folder(iris, "Species")
getcol.folder(iris.fold, "Sepal.Length")
getcol.folder(iris.fold, c("Petal.Length", "Petal.Width"))

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