collection {oosp}R Documentation

collection objects

Description

A collection object extends a list object. It has two differences. One, by default it automatically resolves argument names. Two, element objects can be accessed using single brackets.

Usage

collection (..., resolve=TRUE, call=sys.call () )
is.collection (obj)
as.collection (obj)
## S3 method for class 'collection':
obj[...]
## S3 method for class 'collection':
obj[...]<-value

Arguments

resolve This should generally be true, and means that the function attempts to resolve argument names. If calling collection with dots as an argument, it is advisable to either set resolve to false, or replace the call. Refer to is.cleancall for more information.
call The call containing the original arguments, that is, the call used to resolve the argument names.
obj A collection object, or a potential collection object.
value New value for an element object.
... For collection, the objects to be in the collection. For the extraction methods, the indices.

[Package oosp version 0.2.3 Index]