Learn R Programming

EcoSimR (version 0.1.0)

size_uniform_user: SizeUser Size Overlap Randomization Algorithm

Description

Observed body sizes are randomized with a uniform distribution for which the user has defined the minimum and maximum possible body size.

Usage

size_uniform_user(speciesData = runif(n = 20), userLow = 0.9 * min(speciesData), userHigh = 1.1 * max(speciesData))

Arguments

speciesData
a vector of observed body sizes.
userLow
a user-defined lower limit.
userHigh
a user-defined upper limit.

Value

Returns a vector of randomized body sizes.

Details

Within the user-defined limits, body sizes of all n species are randomized, whereas uniform_size randomizes only n - 2 of the body sizes and uses the extreme values to set the endpoints.

See Also

size_uniform size distribution algorithm.

Examples

Run this code
nullSizes <- size_uniform_user(speciesData=runif(20,min=10,max=20),userLow=8,userHigh=24)

Run the code above in your browser using DataLab