| accumulate {mefa} | R Documentation |
This function can be used to summarise accumulation trends on object class "scount", if segment column
of of the 'sscount' object can be ordered (e.g. time).
accumulate(x)
x |
an object of class 'scount'. |
A data frame with nlevels(x$data$segment) number of rows and 5 columns.
segment contains ordered levels of x$data$segment, newrecord is the number of new records (or number of individuals, based on x$data$count), newspec is the number of new species in subsequent segment levels, cumrecord is the cumulative number of new records, cumspec is the cumulative number of new species in subsequent segment levels.
Peter Solymos, Solymos.Peter@aotk.szie.hu, http://www.univet.hu/users/psolymos/personal/
ssc <- sscount(data.frame(
LETTERS[rpois(20,1)+1], # samples
letters[rpois(20,2)+1], # species
rpois(20,10)+2000, # years of observetion
rep(1,20))) # 1s for single counts
ssc$data
accumulate(ssc)