spabundance: initialization of species' abundance across the...

Description Usage Arguments Author(s) References See Also Examples

View source: R/coexist.R

Description

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

Usage

1
spabundance(island, abund = 1000)

Arguments

island

number of patches

abund

initial abundance of species at the source patch (leftmost)

Author(s)

Youhua Chen <yhchen@zoology.ubc.ca>

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- 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)
  }

coexist documentation built on May 2, 2019, 1:43 p.m.