select: Select multiple columns

Description Usage Arguments Value Note See Also Examples

Description

Select multiple columns

Usage

1
2
3
4
selectIf(object, predicate, ...)

## S4 method for signature 'DataFrame,'function''
selectIf(object, predicate)

Arguments

object

Object.

predicate

function. A predicate function to be applied to the columns. For example, is.atomic().

...

Additional arguments.

Value

Modified object.

Note

Updated 2019-08-26.

See Also

These functions are inspired by dplyr. However, they are designed to only work on DataFrame class, and use base R code internally.

`help(topic = "select_all", package = "dplyr")`

Examples

1
2
3
4
5
data(iris, package = "datasets")

## DataFrame ====
x <- as(iris, "DataFrame")
selectIf(x, predicate = is.factor)

steinbaugh/S4Transformer documentation built on Jan. 9, 2020, 7:30 p.m.