lset.ldat: Set values is an ldat object

View source: R/lset_ldat.R

lset.ldatR Documentation

Set values is an ldat object

Description

Set values is an ldat object

Usage

## S3 method for class '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.


djvanderlaan/ldat documentation built on Oct. 4, 2022, 7:01 p.m.