standardize_case {tntpr}R Documentation

Update case of a character vector

Description

Helper function for factorize_df(). Returns a vector of the same length as vec, with any values that match values in valid_strings updated to the case in valid_strings

Usage

standardize_case(vec, new_case)

Arguments

vec

The character vector you want to update

new_case

A character vector of correctly cased strings

Value

a character vector the same length as vec


[Package tntpr version 1.0.2 Index]