Function that calculates the % climate match of a species with each climatic zone defined in the Köppen-Geiger climate classification map. It's output is the dataset currently labeled as 'unfiltered'. This function will be very similar to the climate matching part in the climate_match() function currently stored under trias, with the following additions:
[ ] A buffer will be used around each occurrence point to calculate number of records in each climatic zone (see #12)
[ ] The user will be able to filter the records used for climate matching (e.g., only use those from a specific region or time period, see #5)
[ ] In case a certain amount of records falls in the marine realm, a pop-up should occur to ask whether the species is marine. If so, an error should be given: Currently climate_matching cannot be performed for marine species (see #6 )
[ ] A column displaying the amount of climate matching relative to the region with the highest match will be added (see #7)
Checklist
[ ] maak een nieuw R-bestand
[ ] sla het R bestand op onder ./R met filenaam is gelijk aan functienaam
[ ] voorzie een functie titel met #' op regel 1 van je script
[ ] voorzie een auteur met #' @author
[ ] voorzie een beschrijving met #' @description
[ ] voorzie uitleg over de input parameter(s) met #' @param name
[ ] voorzie uitleg over de output van de functie met #' @returns
[ ] voorzie minstens 1 voorbeeld van het gebruik van de functie dmv #' @examples
climate_match
Function that calculates the % climate match of a species with each climatic zone defined in the Köppen-Geiger climate classification map. It's output is the dataset currently labeled as 'unfiltered'. This function will be very similar to the climate matching part in the climate_match() function currently stored under trias, with the following additions:
Checklist
./R
met filenaam is gelijk aan functienaam#'
op regel 1 van je script#' @author
#' @description
#' @param name
#' @returns
#' @examples
#' @export
(#14)usethis::use_package("packagename", min_version = TRUE)
uit in de console voor iedere package die je gebruikt.roxygen2::roxygenise()
uit in de consoledevtools::check()
uit in de console1in de mate van het mogelijke