Skip to contents

[Stable]

This function returns the name of a variable by its index

Usage

get_varname(.data, .index)

Arguments

.data

data frame

.index

index of a variable

Examples

get_varname(mtcars, 2)
#> [1] "cyl"