View source: R/cumul_overlap.R
cumul_overlap | R Documentation |
cumul_overlap
counts the number of overlapping rows.
cumul_overlap(x)
x |
The variable to count overlaps by (usually will be overlap) |
This function builds on overlap
and counts the number of
overlapping rows. Used in the los
function.
Based on https://stackoverflow.com/questions/5012516/count-how-many-consecutive-values-are-true
## Not run:
cumul_overlap(overlap)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.