extensions: Instantiate Records Implied By Range Data

Description Usage Arguments Details Value Author(s) References See Also

Description

deranged generates the records implied by the range stored as start and stop.

Usage

1
2
3
4
## S3 method for class 'keyed'
deranged(x, ...)
## S3 method for class 'data.frame'
deranged(x, start, stop, result = start, dropStop = TRUE, ...)

Arguments

x

dispatch argument

start

name of column with start values

stop

name of column with stop values

result

name of column in which to place the result

dropStop

whether to drop the stop column before returning

...

extra arguments, usually ignored; see details

Details

deranged.data.frame. When a dataset attribute (column) is constant over some range of another discreet attribute, information may be stored more compactly by specifying the constant attribute once, together with the start and stop of the range. This function takes such a dataset and instantiates all implied records. Warning: the function calls seq(start,stop) for each row, and makes no assumptions about whether the data is ascending, descending, stationary (start==stop), or undefined (one or more of start and stop is NA). deranged.keyed is just a wrapper that preserves attributes.

Value

deranged returns keyed data.frame.

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also


metrumrg documentation built on May 2, 2019, 5:55 p.m.