clean_strings: Clean strings so that they can be used as variable names or...

View source: R/clean_strings.R

clean_stringsR Documentation

Clean strings so that they can be used as variable names or column names

Description

Clean strings so that they can be used as variable names or column names

Usage

clean_strings(string, treat_dups = TRUE)

Arguments

string

Character string to be "cleaned".

treat_dups

Set to FALSE to allow duplication of strings. Defaults to TRUE

Value

A "cleaned" string character vector.

Examples

clean_strings(c("Respondent ID","Q23. Brand Awareness"))

martinctc/surveytools documentation built on Nov. 21, 2024, 10:48 p.m.