Skip to content

Commit

Permalink
fix discretize error
Browse files Browse the repository at this point in the history
  • Loading branch information
VLucet committed Feb 24, 2022
1 parent 683c972 commit 6907048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/discretize-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ sample_points <- function(mode, with, boundaries, boundary, nb_samples, seed){

set.seed(seed) ; the_points <-
suppressMessages(sf::st_join(with, boundaries,
suffix = c("", "_duplicate"))) %>%
suffix = c("_duplicate", ""))) %>%
dplyr::select(-dplyr::contains("duplicate")) %>%
dplyr::filter(!is.na(eval(dplyr::sym(boundary)))) %>%
dplyr::group_by(.data[[boundary]]) %>%
dplyr::filter(1:dplyr::n() %in%
Expand Down

0 comments on commit 6907048

Please sign in to comment.