Learn R Programming

crunch (version 1.14.4)

weight: Dataset weights

Description

Dataset weights

Usage

weight(x)
weight(x) <- value

Arguments

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

Value

For the getter, a Variable if there is a weight, else NULL. For the setter, x, modified accordingly