prepLoc: Format Locality String

View source: R/prepLoc.R

prepLocR Documentation

Format Locality String

Description

Simplify the notation of the standard plantR locality string, which is used for the validate localities and geographical coordinates.

Usage

prepLoc(x)

Arguments

x

character. The concatenated locality string to be simplified.

Details

The goal of this function is to simplify the locality strings in order to reduce variations in locality notation and thus to increase the chances of match with the plantR gazetteer and maps.

It transforms the string to lowercase and removes special characters and prepositions of locality names.

Value

The edited locality string.

Author(s)

Renato A. F. de Lima

See Also

strLoc

Examples

  prepLoc("Brazil_Rio de Janeiro")
  prepLoc("Brazil_Rio Grande do Sul_Coqueiros do Sul")
  prepLoc("Brazil_Bahia_Arraial d'Ajuda")
  prepLoc("Brazil_São Paulo_Sete Barras_Parque Estadual de Carlos Botelho")
  prepLoc("Cuba_Isla de la Juventud")


LimaRAF/plantR documentation built on Jan. 1, 2023, 10:18 a.m.