Learn R Programming

birdring (version 1.2)

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)

Arguments

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

Value

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

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