index_to_name: a helper function to get names by integer indexes from...

View source: R/utils.R

index_to_nameR Documentation

a helper function to get names by integer indexes from data.frame or list

Description

a helper function to get names by integer indexes from data.frame or list

Usage

index_to_name(x, ind)

Arguments

x

a data.frame or a list

ind

a vector of integer indexes or colnames of x

Value

a vector of characters

Examples

index_to_name(data.frame(A = 1, B = 2), 1)


zzwch/crosslink documentation built on Aug. 27, 2023, 5:57 p.m.