kaitlyngaynor / gorongosa-shiny

Code for Gorongosa Camera Trap Shiny App
https://kaitlyngaynor.shinyapps.io/gorongosa-shiny/
Apache License 2.0
2 stars 0 forks source link

Monthly RAI comparison not working #8

Closed kaitlyngaynor closed 4 years ago

kaitlyngaynor commented 4 years ago

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.

kaitlyngaynor commented 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.