Learn R Programming

ldat (version 0.3.3)

lset.ldat: Set values is an ldat object

Description

Set values is an ldat object

Usage

# S3 method for ldat
lset(x, index = NULL, values, range = NULL, ...)

Arguments

x

an object of type ldat

index

a numeric of logical vector with indices at which the values should be set.

values

a vector with new values.

range

a numeric vector of length 2 specifying a range of elements to select. Specify either index or range.

...

ignored.

Details

When values is a vector the values are assigned to each column in x. Otherwise, vectors is assumed to be a list or data.frame of the same length as x. Each element of values is assigned to the corresponding element of x.