getruns | R Documentation |
Calculates lengths of the runs of 0s and 1s in a vector.
getruns(avail)
avail |
is a vecto of binary data (0s and 1s). |
Returns a list with components run1
being a vector with
the lengths of all runs of 1s, in order, and run0
being a vector with
the lengths of all runs of 0s, in order.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.