list_ones: List with vectors of ones

Description Usage Arguments Value Author(s) See Also Examples

View source: R/list_ones.r

Description

Create a list with vectors of ones from a numeric vector

Usage

1

Arguments

x

a numeric vector

Value

A list of vectors with ones

Author(s)

Gaston Sanchez

See Also

listify

Examples

1
2
3
4
5
# let's say you have a numeric vector like this
num_vec = c(2, 3, 1, 4)

# get indices in vector format
list_ones(num_vec)

gastonstat/turner documentation built on May 16, 2019, 6:38 p.m.