Closed kaitlyngaynor closed 4 years ago
The issue was with the cbind—it was looking for the same number of rows in the second term (Subset = A") as in the monthly RAI table. This problem did not arise with the RAI because it was a data.frame and not a tibble, so I just added as.data.frame() to the end of the monthly RAI function.
https://github.com/kaitlyngaynor/gorongosa-camera-traps/blob/d35c695e9e7e3fb172da392db907b1171a3abf1d/shiny-rai/server.R#L173-L184
For some reason, this isn't working. New single-species RAI monthly function is working for the first panel with one species, but not in the comparison. Neither the RAI table nor figure is showing up either.