Augment a List-like Object

Description

Add named elements to an object.

Usage

1
aug(`_data`, ...)

Arguments

_data

a list-like object

...

name-value pairs

Details

For each extra argument, an attempt is made to assign its value to a like-named element of x (typically a list or data.frame). The augmented object is returned. Similar to transform, but simpler. Each argument will be evaluated first in an environment constructed from _data.

Value

like _data

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also

  • transform

Examples

1
head(aug(Theoph,study='b'))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.