Landscape-Data-Commons / rangeland_indicator_calculator

A Shiny interface for calculating indicators/statistics using terradactyl
0 stars 0 forks source link

Fix grouping for heights #28

Closed nstauffer closed 2 years ago

nstauffer commented 2 years ago

Looks like the issue is with the across() around line 1126 where the display_results rounding happens. Using any grouping variables returns this:

Warning: Error in dplyr::mutate: Problem while computing ..1 = dplyr::across(...). i The error occurred in group 1: PrimaryKey = "14052914534336152014-09-01". Caused by error in across(): ! Can't subset columns past the end. i Location 8 doesn't exist. i There are only 7 columns.

nstauffer commented 2 years ago

Apparently I didn't read the documentation for dplyr::all_of() very well and it's supposed to be fed a character vector, not a numeric vector.