Learn R Programming

crunch (version 1.3.2)

dataset-update: Update a variable or variables in a dataset

Description

Update a variable or variables in a dataset

Usage

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

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

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

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

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

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

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

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

## S3 method for class 'CrunchDataset,CrunchExpr,ANY,ANY': [(x, i, j) <- value

Arguments

x
a CrunchDataset
i
For [, a CrunchLogicalExpr, numeric, or logical vector defining a subset of the rows of x. For [[, see j for the as.list column subsetting.
value
replacement values to insert. These can be crunchExprs or R vectors of the corresponding type
name
like j but for $
j
if character, identifies variables to extract based on their aliases (by default, i.e. when x's useAlias is TRUE); if numeric or logical, extracts variables accordingly. Note that this is the as.list extraction, columns of the dataset rather

Value

  • x, modified.