Learn R Programming

traitstrap (version 0.1.0)

distribution_handler: Get different distributions

Description

Internal helper function for drawing traits

Usage

distribution_handler(parm1, parm2, n = 1, type)

Value

numeric vector of length n from required distribution.

Arguments

parm1

the first parameter in a fitted distribution

parm2

the second parameter in a fitted distribution

n

Number of draws. Defaults to 1

type

Distribution type to fit. One of "normal", "lognormal", or "beta"