as_factor_clocale: Locale-independent factor conversion

View source: R/utils.R

as_factor_clocaleR Documentation

Locale-independent factor conversion

Description

Locale-independent factor conversion

Usage

as_factor_clocale(x)

Arguments

x

a vector

Value

the same vector, but with any factorial content or colums with repeating character strings converted to factors, applying a locale-independent sorting.

Note

Only for internal application in as.traitdata() This deals with the problem described by Kurt Hornik (here) for changes coming in R 4.0.0. In traitdataform, this concerns the locale-dependence of taxon and trait name sorting when calling published trait-datasets. For traits, the sorting order of factor levels will be superimposed by the order given in the thesaurus specification (if provided).


EcologicalTraitData/traitdataform documentation built on June 12, 2022, 5:57 a.m.