Learn R Programming

dad (version 4.1.6)

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

Description

Remove some columns in all data frames of a folder.

Usage

rmcol.folder(object, name)

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]], except those given by name.

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 removed in each data frame of the folder.

Author

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

See Also

folder: object of class folder.

getcol.folder: select 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

Run this code
data(iris)

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

Run the code above in your browser using DataLab