This function standardises labels e.g. used as variable names or character
string values, removing non-ascii characters, replacing diacritics (e.g. é,
ô) with their closest ascii equivalents, and standardises separating
characters. See details for more information on label transformation.
clean_labels(x, sep = "_")
A vector of labels, normally provided as characters.
A character string used as separator, defaulting to '_'.
The following changes are performed:
all non-ascii characters are removed
all diacritics are replaced with their non-accentuated equivalents, e.g. 'é', 'ê' and 'è' become 'e', 'ö' becomes 'o', etc.
all characters are set to lower case
separators are standardised to the use of a single character provided
sep (defaults to '_'); heading and trailing separators are removed.
Thibaut Jombart [email protected]
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.