Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Feb 9, 2024
1 parent 83bc795 commit e88eb5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/join.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ st_join.sf = function(x, y, join = st_intersects, ..., suffix = c(".x", ".y"),
if (inherits(x, "tbl_df") && requireNamespace("dplyr", quietly = TRUE))
st_sf(dplyr::bind_cols(x[ix,], y[unlist(i), , drop = FALSE]))
else
st_sf(cbind(as.data.frame(x)[ix, ,drop=FALSE], y[unlist(i), , drop = FALSE]))

st_sf(cbind(as.data.frame(x)[ix, ,drop=FALSE], y[unlist(i), , drop = FALSE]))
}

#' @export
Expand Down

0 comments on commit e88eb5d

Please sign in to comment.