clean_labels: Standardise labels

Description Usage Arguments Details Author(s) Examples

Description

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.

Usage

1
clean_labels(x, sep = "_")

Arguments

x

A vector of labels, normally provided as characters.

sep

A character string used as separator, defaulting to '_'.

Details

The following changes are performed:

Author(s)

Thibaut Jombart [email protected]

Examples

1
2
3
4
5
clean_labels("-_-This is; A    WeÏrD**./sêntënce...")
clean_labels("-_-This is; A    WeÏrD**./sêntënce...", sep = ".")
input <- c("Peter and stëven", "peter-and.stëven", "pëtêr and stëven  _-")
input
clean_labels(input)

epitrix documentation built on May 2, 2019, 6:35 a.m.