Learn R Programming

crunch (version 1.3.2)

subvars-extract: Extract and modify subsets of subvariables

Description

Extract and modify subsets of subvariables

Usage

## S3 method for class 'Subvariables,character':
[[(x, i, j, ...)

## S3 method for class 'Subvariables,ANY': [[(x, i, j, ...)

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

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

## S3 method for class 'Subvariables,character,missing,CrunchVariable': [[(x, i) <- value

## S3 method for class 'Subvariables,ANY,missing,CrunchVariable': [[(x, i) <- value

## S3 method for class 'Subvariables,ANY,missing,`NULL`': [[(x, i) <- value

## S3 method for class 'Subvariables,ANY,missing,ANY': [[(x, i) <- value

## S3 method for class 'Subvariables,character,missing,Subvariables': [(x, i) <- value

## S3 method for class 'Subvariables,ANY,missing,Subvariables': [(x, i) <- value

## S3 method for class 'Subvariables,ANY,missing,ANY': [(x, i) <- value

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

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

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

## S3 method for class 'CategoricalArrayVariable,ANY': [[(x, i, j, ...)

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

Arguments

x
Subvariables or an array Variable (which contains subvariables)
i
which subvariables to extract
j
Invalid
...
additional arguments
name
For $, the name (not alias) of the subvariable to extract
drop
Invalid
value
For updating, a CrunchExpr

Value

  • A subset of x if extracting, otherwise x duly modified