r_vitals: Generate random life histories/vital rates

View source: R/r_vitals.R

r_vitalsR Documentation

Generate random life histories/vital rates

Description

Draws values from a random uniform distribution (see function runif() ) between a minmum and maximum value.

Usage

r_vitals(d = 0.25, n = 10000, params. = param_set())

Arguments

d

sets range of data to draw random values from (delta)

n

number of simulated life histories

params.

starting values for parameters. Defaults to output of param_set()

Details

TODO: split this up into sep function 1st, generate random valueas 2nd, make sure high quality > low quaity 3rd, contstain to a particular lambda value output diagnostic plots to examine be able to set lambda values from function (current hard coded) be able to allow any lambda values allow tolerances to be set on lambda values being used as references (currently use round() as a clunky way to make this work)

Value

px2 xxx

Examples

random.vitals <-r_vitals()
head(random.vitals)

brouwern/FACavian documentation built on March 23, 2022, 10:07 a.m.