Skip to contents

creates a sequence for every unique value in a vector

Usage

multiseq(v)

Arguments

v

a vector

Value

a vector with multiple sequences

Author

Martin Hecht

Examples

v <- c("a", "a", "a", "c", "b", "b" , "a")
multiseq(v)
#> [1] 1 2 3 1 1 2 4