Skip to content

Commit 36f23bf

Browse files
committed
fix typo
1 parent f3e93b7 commit 36f23bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/st_tools.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ st_dissolve <- function(x, by = NULL, ...) UseMethod("st_dissolve")
7070
#' @rdname st_dissolve
7171
#' @export
7272
st_dissolve.sf <- function(x, by = NULL, ...) {
73-
if (is.null(by) || !(by %in% colnames(shp))) by <- colnames(x)[1]
73+
if (is.null(by) || !(by %in% colnames(x))) by <- colnames(x)[1]
7474
x %>%
7575
dplyr::group_by_at(by) %>%
7676
dplyr::summarise(...)

0 commit comments

Comments
 (0)