Learn R Programming

ldat (version 0.3.3)

lget.ldat: Read elements from an ldat object

Description

Read elements from an ldat object

Usage

# S3 method for ldat
lget(x, ...)

Arguments

x

the ldat to read from

...

passed on to lget.lvec.

Value

Returns an ldat with the selected elements. In order to convert the selection to an R-vector as_rvec can e used.

Details

Indexing using index should follow the same rules as indexing a regular data.frame using a logical or numeric index. The range given by range includes both end elements. So, a range of c(1,3) selects the first three elements.