Skip to contents

[Stable]

This function returns the index of a variable

Usage

get_index(.data, .var)

Arguments

.data

data frame

.var

variable on which index will be returned

Examples

get_index(mtcars, cyl)
#> [1] 2