fmsabatini / sPlotOpen_Code

Code to create sPlotOpen
https://htmlpreview.github.io/?https://github.com/fmsabatini/sPlotOpen_Code/blob/master/_public/02_BuildDataset.html
10 stars 3 forks source link

Plot with sum of relative cover >1 #9

Closed fmsabatini closed 8 months ago

fmsabatini commented 9 months ago

There are 119 plots with the sum of their relative cover being greater than 1

DT2.oa %>% group_by(PlotObservationID) %>% summarize(totcover=sum(Relative_cover)) %>% filter(totcover>1.0001)

I believe this is due to replicated species names in the these plots, but further checking is needed

fmsabatini commented 9 months ago

I think the problem happens in the section "### Abundance and cover data" of the code, specifically when joining back DT_raw onto DT2.oa... DT_raw has some duplicates that get transferred to DT2.oa!!!

fmsabatini commented 9 months ago

started branch FixDuplicatedSpeciesCWM to fix