to_named_vector: turn two columns of a tibble into a named vector

View source: R/helpers.R

to_named_vectorR Documentation

turn two columns of a tibble into a named vector

Description

turn two columns of a tibble into a named vector

Usage

to_named_vector(data, name_column, value_column)

Arguments

data

a tibble

name_column

string with the name of the column to be used as names in the vector

value_column

string with the name of the column to be used as values in the vector

Value

a named vector


mountainMath/cancensusHelpers documentation built on May 14, 2022, 12:43 p.m.