standardize_case: Update case of a character vector

View source: R/factorize.R

standardize_caseR 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


tntp/tntpr documentation built on March 27, 2024, 6:26 p.m.