select2: select2

Description Usage Arguments Value Examples

Description

A function to select column in a data.frame

Usage

1
select2(data, selection)

Arguments

data

a data.frame

selection

interger, logical, or character vector

Value

the choosen column

Examples

1
2
3
4
x <- data.frame(x1 = rnorm(10), x2 = rnorm(10))

select2(x, "x1")
select2(x, 1)

jumentib/minidplyr documentation built on May 8, 2019, 7:28 a.m.