Learn R Programming

crunch (version 1.18.0)

weight: Dataset weights

Description

"weight" lets you view and set your user's currently applied weight on the server. "weightVariables" lets you view all of the variables that have been designated as valid to use as weights.

Usage

weight(x)

weight(x) <- value

# S4 method for CrunchDataset weightVariables(x)

# S4 method for VariableCatalog weightVariables(x)

Arguments

x

a Dataset

value

a Variable to set as weight, or NULL to remove the existing weight

Value

For the weight getter, a Variable if there is a weight, else NULL. For the setter, x, modified accordingly. weightVariables returns the aliases (or names, according to options(crunch.namekey.dataset)), of the variables designated as weights.