.clean_string {epiparameter}R 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.


[Package epiparameter version 0.4.0 Index]