Learn R Programming

timeordered (version 1.0.1)

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

Description

Randomly removes a fixed fraction of the event list.

Usage

rarefy(raw, fraction)

Value

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

Arguments

raw

The event list to be rarefied.

fraction

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

Author

Benjamin Blonder bblonder@email.arizona.edu.

See Also

randomizeidentities,randomizetimes

Examples

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


Run the code above in your browser using DataLab