codes2names: Transforms codes of circumstances, condition, species and...

View source: R/codes2names.r

codes2namesR Documentation

Transforms codes of circumstances, condition, species and sheme into string

Description

The function gives for the numeric codes for circumstances, condition and species the interpretable string name as given in the EURING code. The alphabetic scheme code is transformed into the town and country name of the scheme.

Usage

codes2names(x, variable = "circumstances", type="euring")

Arguments

x

variable circumstances, condition, species or scheme from the output of
read.EURING2000plus.

variable

character that declares the name of the variable x, should be one of c("circumstances" [default], "conditions", "schemes", "species").

type

character that declares which names should be used, the one defined in the EURING manual, "euring" (default), or the ones used in the BTO ringing reports, "bto", (http://www.bto.org/volunteer-surveys/ringing/publications/online-ringing-reports).

Value

a factor with levels corresponding to the names of the EURING code

Author(s)

F. Korner-Nievergelt

References

http://www.euring.org/data_and_codes/euring_code_list/index.html

See Also

scheme2country

Examples

# circumstances
examplecode <- c(20, 21, 35, 80)
codes2names(examplecode) 

# conditions
examplecodes <- c(0:9)
codes2names(examplecodes, variable="conditions")

# schemes
codes2names("BGS", variable="schemes")

birdring documentation built on Oct. 7, 2023, 5:07 p.m.