Learn R Programming

osmose (version 0.1.0)

getMortalityDeviation: Computes the mortality deviation. The "proxy", which is removed, can be provided by the user in the "pars" argument.

Description

Computes the mortality deviation. The "proxy", which is removed, can be provided by the user in the "pars" argument.

Usage

getMortalityDeviation(x, stage, type, pars = NULL)

Arguments

x

Mortality dataframe

stage

Stage ("adults", etc.)

type

Mortality type

pars

A list or data frame containing dt.save, M.proxy, dt entries. If NULL, then proxy = colMeans(x)

Value

An 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
mortdev = getMortalityDeviation(mortality_df, stage="juveniles", type="total")
}
# }

Run the code above in your browser using DataLab