Learn R Programming

crunch (version 1.25.0)

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

Description

Update a variable or variables in a dataset

Usage

# S4 method for CrunchDataset,character,missing,CrunchVariable
[[(x,
  i) <- value

# S4 method for CrunchDataset,ANY,missing,CrunchVariable [[(x, i) <- value

# S4 method for CrunchDataset,character,missing,ANY [[(x, i) <- value

# S4 method for CrunchDataset,character,missing,CrunchLogicalExpr [[(x, i) <- value

# S4 method for CrunchDataset,ANY,ANY,ANY [[(x, i) <- value

# S4 method for CrunchDataset,character,missing,`NULL` [[(x, i) <- value

# S4 method for CrunchDataset,ANY,missing,`NULL` [[(x, i) <- value

# S4 method for CrunchDataset $(x, name) <- value

# S4 method for CrunchDataset,character,missing,CrunchGeography [[(x, i) <- value

# S4 method for CrunchDataset,ANY,missing,CrunchGeography [[(x, i) <- value

# S4 method for CrunchDataset,ANY,missing,list [(x, i, j) <- value

# S4 method for 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: 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.