000-LB--LB-.ListVector: List-style subseting of object

Description Usage Arguments Value Author(s) See Also

Description

List-style subseting of object similar to subsetting of a list.

Usage

1
2
## S3 method for class 'ListVector'
object[[name, .partial=TRUE, .dropUnique=TRUE]]

Arguments

name

A vector of (partial) element names to be retrieved.

.partial

If TRUE, partial name matching is applied, otherwise exact names are required.

.dropUnique

If TRUE and only one matching element exists, the element is returned by itself without being wrapped up in a list.

Value

Returns either a list, a vector of length one or more, or as NULL. If more than one element were matched, the elements are returned as a list. If .dropUnique==TRUE and only one element was matched, the element is returned "as is". If no matching element exists, NULL is returned.

Author(s)

Henrik Bengtsson

See Also

For more information see ListVector.


HenrikBengtsson/R.basic documentation built on May 6, 2019, 11:51 p.m.