get_indices: Get Data Indices

Description Usage Arguments Value Examples

View source: R/miscutils.R

Description

returns a vector with the indices into the dataset, either as the named entries or the ordered positions of entries

Usage

1

Arguments

data

any data set with positional elements

Value

either a numeric vector of positional indices or a character vector of named entries

Examples

1
2
3
get_indices(100:110)
get_indices(c('a'=10,'b'=20))
get_indices(iris)

duncankmckinnon/OKdplyr documentation built on Nov. 30, 2020, 1:13 a.m.