sample.meteDist: Sample from a 'meteR::meteDist' object

Description Usage Arguments Details Author(s) Examples

View source: R/sample.meteDist.R

Description

Draw a random sample of individuals from a 'meteDist' object, with or without replacement.

Usage

1

Arguments

x

a 'meteDist' object

size

number of individuals to sample

replace

logical, whether sampling should be with or without replacement

Details

Currently only SAD and IPD classes are supported

Author(s)

A.J. Rominger <[email protected]>

Examples

1
2
3
x <- rpois(100, 1) + 1 # this won't look very METEish
esf <- meteESF(1:length(x), x)
subSAD <- sample.meteDist(sad(esf), size = round(0.5 * sum(x)), replace = TRUE)

ajrominger/hawaiiMETE documentation built on May 21, 2019, 1:42 p.m.