Learn R Programming

coexist (version 1.0)

spabundance: initialization of species' abundance across the patches/islands

Description

initialization of species' abundance across the patches/islands prior to dispersal/competition interactions

Usage

spabundance(island, abund = 1000)

Arguments

island
number of patches
abund
initial abundance of species at the source patch (leftmost)

References

Chen YH (2012) coexist: an R package for performing species coexistence modeling and analysis under asymmetric dispersal and fluctuating source-sink dynamics. http://code.google.com/p/coexist.

See Also

flexsim, sim.coarse

Examples

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

## The function is currently defined as
function (island, abund = 1000) 
{
    sabund <- vector()
    length(sabund) <- island
    sabund[1] = abund
    sabund[2:island] = 0
    return(sabund)
  }

Run the code above in your browser using DataLab