splitit: split it

Description Usage Arguments Examples

Description

Creates an list of indexes for each unique entry of x

Usage

1

Arguments

x

a vector

Examples

1
2
x <- c("a","a","b","a","b","c","b","b")
splitit(x)

Example output

$a
[1] 1 2 4

$b
[1] 3 5 7 8

$c
[1] 6

rafalib documentation built on May 1, 2019, 10:26 p.m.