Learn R Programming

facilitation (version 0.5.2)

longevity: longevity

Description

Calculates the lifespan of each individual. Returns a data.frame with the individual's id, the last stage reached by that individual, the time of birth, time of death (if dead), and longevity (if dead).

Usage

longevity(data)

Arguments

data

result of a simulation, created by community

Examples

Run this code
# NOT RUN {
data(malthusian)
longevity(malthusian)
# }

Run the code above in your browser using DataLab