breaks: Identify Boundaries Between Sets of Elements

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

Description

Identify boundaries between sets elements.

Usage

1
breaks(x, ...)

Arguments

x

vector

...

ignored

Details

A vector of length n has at most n-1 divisions between elements. If the elements are taken in runs of repeated elements, a set of divisions <= n-1 may be identified. This function returns a zero for each between-element position if the bounding elements are identical, and a one for each between-element position if the bounding elements differ. Used for placing lines between sets of rows or columns in a table.

Value

integer

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also

Examples

1
breaks(c(1,1,1,2,2,2,3,3,3))

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