Learn R Programming

multiplyr (version 0.1.1)

select: Retain only specified variables

Description

Takes a list of columns and returns a data frame with only those columns and in the order specified

Usage

select(.self, ...)
select_(.self, ..., .dots)

Arguments

.self
Data frame
...
Additional parameters
.dots
Workaround for non-standard evaluation

Value

Data frame

See Also

Other column manipulations: add_rownames, define, rename, undefine

Examples

Run this code

dat <- Multiplyr (x = 1:100, y = 100:1, z = rep(123, 100))
dat %>% select (y, x)
dat %>% shutdown()

Run the code above in your browser using DataLab