Learn R Programming

accelerometry (version 2.1)

rle2.num: C++ function for rle2 (numeric)

Description

This function is called by rle2 to identify runs of repeated numeric values. Not intended for direct use.

Usage

rle2.num(x, nmax)

Arguments

x
Input vector containing numeric data.
nmax
Maximum number of distinct runs.

Value

  • The function returns a 4-column matrix, where each row contains information on a particular "run" of repeated values. The columns are value, start index, end index, run length.

Details

NA

References

Acknowledgment: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-0940903.

See Also

NA

Examples

Run this code
NA

Run the code above in your browser using DataLab