# NOT RUN {
data(knz_001d)
synchrony(knz_001d[knz_001d$subplot=="A_1",],
time.var = "year",
species.var = "species",
abundance.var = "abundance") # for one subplot
# }
# NOT RUN {
synchrony(knz_001d,
time.var = "year",
species.var = "species",
abundance.var = "abundance",
replicate.var = "subplot") # across all subplots
synchrony(knz_001d,
time.var = "year",
species.var = "species",
abundance.var = "abundance",
replicate.var = "subplot",
metric="Gross") # With Gross et al. (2014) metric.
# }
Run the code above in your browser using DataLab