cumcount: Cumulative count of strings.

Description Usage Arguments Value Examples

View source: R/uniqtag.R

Description

Return an integer vector counting the number of occurrences of each string up to that position in the vector.

Usage

1

Arguments

xs

a character vector

Value

an integer vector of the cumulative string counts

Examples

1

Example output

Alb Als Arz Ark Clf Clr Cnn Dlw Flr Grg Haw Idh Ill Ind Iow Kns Knt Lsn Man Mry 
  1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1 
Mss Mch Mnn Mss Mss Mnt Nbr Nvd NwH NwJ NwM NwY NrC NrD Ohi Okl Org Pnn RhI StC 
  1   1   1   2   3   1   1   1   1   1   1   1   1   1   1   1   1   1   1   1 
StD Tnn Txs Uth Vrm Vrg Wsh WsV Wsc Wym 
  1   1   1   1   1   1   1   1   1   1 

uniqtag documentation built on May 29, 2017, 9:11 a.m.