1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prepGroupCounts.R
\name{prepGroupCounts}
\alias{prepGroupCounts}
\title{Retrieves counts for rgroup, cgroup, & tspanner arguments}
\usage{
prepGroupCounts(x)
}
\arguments{
\item{x}{The vector to process}
}
\value{
\code{list(n = rle$lengths, names = rle$values)}
}
\description{
This function is a wrapper to \code{\link[base:rle]{base::rle()}} that
does exactly this but is a little too picky about input values.
}
\examples{
prepGroupCounts(c(1:3, 3:1))
}
|