Skip to content

Commit

Permalink
no need for purrr
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Jun 30, 2024
1 parent ed0abc9 commit 0b876c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ Imports:
stringr,
tibble,
tidyr,
tinytiger,
purrr
tinytiger
Depends:
R (>= 4.0.0)
Suggests:
Expand Down
4 changes: 2 additions & 2 deletions R/datatables.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ block2prec <- function(block_table, matches, geometry = FALSE) {
NA
}
}) |>
purrr::set_names(names(ret)) |>
purrr::discard(function(x) is.na(x))
stats::setNames(names(ret)) |>
Filter(function(x) !is.na(x))

ret <- tidyr::complete(
data = ret, matches_id = seq_len(nrow_to),
Expand Down

0 comments on commit 0b876c1

Please sign in to comment.