Skip to content

Commit

Permalink
added to function call for sf names
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbaxter439 committed Jan 8, 2024
1 parent 99d6565 commit e023b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tidyverse.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ rename_with.sf = function(.data, .fn, .cols, ...) {
ret = dplyr::as_tibble(ret)
ret = st_as_sf(ret, sf_column_name = names(ret)[sf_column_loc])

names(agr) = .fn(names(agr))
names(agr) = .fn(names(agr), ...)
st_agr(ret) = agr
ret
}
Expand Down

0 comments on commit e023b4f

Please sign in to comment.