removeColumns: Remove columns

Description Usage Arguments Details Value Author(s) Examples

View source: R/dfmat.R

Description

Remove columns from a data.frame object

Usage

1

Arguments

data.frame

data.frame

columns

names of columns to be removed

drop

Logical, whether the matrix should be dropped to vector if only one column is left

Details

The function is equivalent to the subsetting operation with brackets. It provides a tidy programming interface to manupulate data.frames.

Value

data.frame with specified columns removed

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples

1
2
3
clubs <- data.frame(Points=c(21,23,28,24), Name=c("BVB", "FCB", "HSV",
"FCK"), games=c(12,11,11,12))
removeColumns(clubs,c("Name"))

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.