Learn R Programming

birdring (version 1.6)

birdstate: Transformation of condition into state

Description

Transforms the numeric code of the variable condition into a factor defining the state of the bird (dead, alive, sick).

Usage

birdstate(x)

Value

a factor with the levels "dead", "alive", "sick" and "unknown"

Arguments

x

variable condition with numeric code for the condition of the bird as given in the original EURING data

Author

F. Korner-Nievergelt

References

du Feu et al. (2012) EURING Exchange Code 2000+. www.euring.org

See Also

codes2names

Examples

Run this code
  condition <- 0:9
  birdstate(condition)

Run the code above in your browser using DataLab