Skip to content

Commit

Permalink
Solve small bug + update documentation
Browse files Browse the repository at this point in the history
dplyr:: is needed to avoid Error in summarize(., n_obs = n()) : could not find function "summarize"
  • Loading branch information
damianooldoni committed Sep 11, 2023
1 parent fc00a3d commit d2200fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/climate_match.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#' # use rworldmap shapes
#' region <- "europe"
#'
#' # provide GBIF taxon_key (-list)
#' # provide GBIF taxon_key(s)
#' taxon_key <- c(2865504, 5274858)
#'
#' # download zip_file from GBIF
Expand Down Expand Up @@ -301,7 +301,7 @@ climate_match <- function(region,
.data$acceptedTaxonKey,
.data$decimalLatitude,
.data$decimalLongitude) %>%
summarize(n_obs = n()) %>%
dplyr::summarize(n_obs = n()) %>%
dplyr::ungroup() %>%
dplyr::left_join(SPECIES, by = c("acceptedTaxonKey" = "TK_2")) %>%
dplyr::rename(acceptedScientificName = .data$ASN_2)
Expand Down
2 changes: 1 addition & 1 deletion man/climate_match.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d2200fa

Please sign in to comment.