I want to calculate the species turnover in a vegetation dataset. I have different restored ecosystems with plots in them. I want to show turnover over the time
It looks similar to this
year.rest | full.plot.ID | Totalveg.cover | species |
---|---|---|---|
1999 | B1.a | 50 | Carex.flacca |
2010 | C1.a | 10 | Juncus.effusus |
…
When I execute this code:
total.to.fen <- turnover(fen.long, time.var = "year.rest", species.var = "species", abundance.var = "totalveg.cover", replicate.var = "full.plot.ID")
I get an error:
Error in names(output) <- `*vtmp*` :
'names' attribute [1] must be the same length as the vector [0]
I dont know how to fix that. Theres also another thread regarding this but no solution.