We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54a26fc commit c3b9dfcCopy full SHA for c3b9dfc
R/raster_to_grid.R
@@ -59,7 +59,7 @@ ras_to_grid <- function(spatial_grid, dat, matching_crs, meth, name, antimeridia
59
data.frame(temp_grid, .) %>%
60
sf::st_sf() %>%
61
{if(matching_crs) . else sf::st_transform(., sf::st_crs(spatial_grid))} %>%
62
- {if(grid_has_extra_cols) cbind(., extra_cols) %>% dplyr::select(colnames(extra_cols), name) else .} %>%
+ {if(grid_has_extra_cols) cbind(., extra_cols) %>% dplyr::relocate(colnames(extra_cols), .before = 1) else .} %>%
63
sf::st_set_geometry("geometry")
64
}
65
0 commit comments