Description Usage Arguments Details Value Author(s) See Also Examples
Groups of consecutive rows are identified, where each row in the group has a certain property.
1 | blk.findConsecutive(id, ind, min.consec = 2)
|
id |
A valid |
ind |
A logical vector in |
min.consec |
An integer specifying the minumum size of a group. |
This function operates on data sets in block-format
.
Some rows have a certain property as indicated by ind
. This
function identifies groups of rows that all possess the property,
are consecutive and have a minimum size min.consec
. All such
groups of rows identified are assigned a unique integer ID. All
remaining rows are given the value 0.
An integer vector in block-format
with respect to id
containing a unique group ID for rows belonging to identified groups, and 0 otherwise.
Ben Rich <benjamin.rich@certara.com>
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.