standardise_character: Standardise a character string

View source: R/strings.R

standardise_characterR Documentation

Standardise a character string

Description

standardise_character takes a character vector and transform all elements to lowercase, removes trailing, leading and superflous whitespaces and replaces all single spaces with an underscore.

Usage

standardise_character(x)

Arguments

x

Character vector of one or more strings

Details

Used in scripts: Robust function: FALSE

Value

Character vector


AndreSjuve/dretools documentation built on Dec. 4, 2024, 3:12 a.m.