View source: R/group_by_diff.R
group_by_diff | R Documentation |
create groups by numerical difference threshold
group_by_diff(x, difference = 1)
x |
numeric. Vector that should be binned into groups. Also possible with Dates. |
difference |
Integer. Specify maximum within-group difference. |
vector should be arranged (sorted) prior to group_by_diff.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.