Skip to content

Commit 83bc795

Browse files
committed
Merge branch 'patch-2' of github.com:faridcher/sf into faridcher-patch-2
2 parents 3e7ef88 + 990ede2 commit 83bc795

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/join.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ st_join.sf = function(x, y, join = st_intersects, ..., suffix = c(".x", ".y"),
174174
if (inherits(x, "tbl_df") && requireNamespace("dplyr", quietly = TRUE))
175175
st_sf(dplyr::bind_cols(x[ix,], y[unlist(i), , drop = FALSE]))
176176
else
177-
st_sf(cbind(as.data.frame(x)[ix,], y[unlist(i), , drop = FALSE]))
177+
st_sf(cbind(as.data.frame(x)[ix, ,drop=FALSE], y[unlist(i), , drop = FALSE]))
178+
178179
}
179180

180181
#' @export

0 commit comments

Comments
 (0)