Learn R Programming

crunch (version 1.14.4)

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

Description

Update a variable or variables in a dataset

Usage

"[["(x, i) <- value
"[["(x, i) <- value
"[["(x, i) <- value
"[["(x, i) <- value
"[["(x, i) <- value
"[["(x, i) <- value
"[["(x, i) <- value
"$"(x, name) <- value
"["(x, i, j) <- value
"["(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: set options(crunch.namekey.dataset="name") to use variable names); if numeric or logical, extracts variables accordingly. Note that this is the as.list extraction, columns of the dataset rather than rows.

Value

x, modified.