tbl_assign_dictionary_names: Assign a set of names to a tibble

View source: R/utils.R

tbl_assign_dictionary_namesR Documentation

Assign a set of names to a tibble

Description

Requires a 'feature' and 'actual' column or a 'tibble' with 2 columns and the 'actual' as the second colun

Usage

tbl_assign_dictionary_names(data, dictionary_names = NULL, snake_names = F)

Arguments

dictionary_names

Examples

library(tibble)
dict_iris <- tibble(feature = names(iris), actual = c("SL", "SW", "PL", "PW", "Name of Species"))

tbl_assign_dictionary_names(iris, dict_iris)
tbl_assign_dictionary_names(iris, dict_iris, snake_names = T)


abresler/asbtools documentation built on July 28, 2022, 11:04 p.m.