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