dot-clean_string: Standardise the variables input by users

.clean_stringR Documentation

Standardise the variables input by users

Description

Checks a user has supplied a character string and converts to epiparameter standards: lower-case and whitespace instead of dashes or underscores.

Examples of strings needing to be cleaned are: disease and pathogen names, and epidemiological distributions.

Usage

.clean_string(x)

Arguments

x

A character string.

Value

A character vector of equal length to the input.


epiparameter documentation built on April 3, 2025, 5:50 p.m.