rarefy: Simulates the effect of insufficient sampling by data...

View source: R/rarefy.R

rarefyR Documentation

Simulates the effect of insufficient sampling by data rarefaction.

Description

Randomly removes a fixed fraction of the event list.

Usage

rarefy(raw, fraction)

Arguments

raw

The event list to be rarefied.

fraction

A fraction (between 0 and 1) of the events to be randomly deleted.

Value

An event list with floor(nrow(raw) * fraction) events remaining.

Author(s)

Benjamin Blonder bblonder@email.arizona.edu.

See Also

randomizeidentities,randomizetimes

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.



timeordered documentation built on Aug. 21, 2023, 1:06 a.m.