Learn R Programming

crunch (version 1.9.4)

dataset-extract: Subset datasets and extract variables

Description

Subset datasets and extract variables

Usage

## S3 method for class 'CrunchDataset,ANY,ANY':
[(x, i, j, ..., drop = TRUE)

## S3 method for class 'CrunchDataset,character,ANY': [(x, i, j, ..., drop = TRUE)

## S3 method for class 'CrunchDataset,missing,ANY': [(x, i, j, ..., drop = FALSE)

## S3 method for class 'CrunchDataset,CrunchLogicalExpr,missing': [(x, i, j, ..., drop = FALSE)

## S3 method for class 'CrunchDataset,CrunchLogicalExpr,ANY': [(x, i, j, ..., drop = FALSE)

## S3 method for class 'CrunchDataset': subset(x, ...)

## S3 method for class 'CrunchDataset,ANY': [[(x, i, ..., drop = FALSE)

## S3 method for class 'CrunchDataset,character': [[(x, i, ..., drop = FALSE)

## S3 method for class 'CrunchDataset': $(x, name)

Arguments

x
a CrunchDataset
i
As with a data.frame, there are two cases: (1) if no other arguments are supplied (i.e x[i]), i provides for as.list extraction: columns of the dataset rather than rows. If character, identifies variable
j
columnar extraction, as described above
...
additional arguments
drop
logical: autmatically simplify a 1-column Dataset to a Variable? Default is FALSE, and the TRUE option is in fact not implemented.
name
columnar extraction for $

Value

  • [ yields a Dataset; [[ and $ return a Variable