pull: Pull out a single variable

Description Usage Arguments Examples

Description

This works like [[ for local data frames, and automatically collects before indexing for remote data tables.

Usage

1
2
3
4
## S3 method for class 'FDF'
pull(.data, var = -1)

pull(.data, var = -1)

Arguments

.data

A FDF.

var

A variable specified as:

  • a literal variable name

  • a positive integer, giving the position counting from the left

  • a negative integer, giving the position counting from the right.

The default returns the last column (on the assumption that's the column you've created most recently).

This argument is taken by expression and supports quasiquotation (you can unquote column names and column positions).

Examples

1
2
3
4
test <- FDF(datasets::iris)
pull(test, 1)
pull(test, 5)
pull(test, Species)

privefl/bigdfr documentation built on May 20, 2019, 9:39 a.m.