Learn R Programming

osmose (version 0.1.1)

getMortality: Get the total mortality rate.

Description

Get the total mortality rate.

Usage

getMortality(x, stage = "adults", type = "total")

Arguments

x

Mortality dataframe

stage

Stage ("adults", etc.)

type

Mortality type ("pred", "starv", "other", "out", "total"). The latter is computed as the sum of all mortality types

Value

A mortality array

Examples

Run this code
# NOT RUN {
{
dirin = system.file("extdata", package="osmose")
outdir = paste(dirin, "/outputs", sep="")
data = read_osmose(outdir)
mortality_df = data$global$mortality
mort = getMortality(mortality_df, stage="juveniles", type="total")
}
# }

Run the code above in your browser using DataLab