prepGroupCounts: Retrieves counts for rgroup, cgroup, & tspanner arguments

View source: R/prepGroupCounts.R

prepGroupCountsR Documentation

Retrieves counts for rgroup, cgroup, & tspanner arguments

Description

This function is a wrapper to base::rle() that does exactly this but is a little too picky about input values.

Usage

prepGroupCounts(x)

Arguments

x

The vector to process

Value

list(n = rle$lengths, names = rle$values)

Examples

prepGroupCounts(c(1:3, 3:1))

htmlTable documentation built on Sept. 11, 2024, 8:48 p.m.