as_factor_clocale: Locale-independent factor conversion

Description Usage Arguments Value Note

View source: R/utils.R

Description

Locale-independent factor conversion

Usage

1

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).


traitdataform documentation built on March 23, 2021, 1:11 a.m.