View source: R/prepGroupCounts.R
prepGroupCounts | R Documentation |
This function is a wrapper to base::rle()
that
does exactly this but is a little too picky about input values.
prepGroupCounts(x)
x |
The vector to process |
list(n = rle$lengths, names = rle$values)
prepGroupCounts(c(1:3, 3:1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.