prepGroupCounts {htmlTable} | 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))