Skip to contents

Generate harvest number using a lognormal distribution. This function is used in prep_msgsi_data() to generate a vector of harvest numbers.

Usage

harv_func(x, n = 5000, seed = NULL)

Arguments

x

A vector consists of harvest mean and CV.

n

Number of sample draws.

seed

Optional random seed.

Value

A vector of harvest numbers drawn from a lognormal distribution with specified mean and CV.

Examples

tot_harv <- harv_func(c(500, 0.05))