Downloads observation data from the Minka API filtering by last update date. It automatically subdivides requests by month and day to avoid the 10,000 record limit per request imposed by the Minka API.
Arguments
- day_update
Date from which to retrieve updated observations. Character string in
"yyyy-mm-dd"format or aDateobject. Observations withupdated_at >= day_updatewill be returned.- ...
Arguments passed on to
mnk_obsquerya generic query string for the 'q' parameter.
taxon_namea character string with the taxon name (common or scientific).
taxon_ida numeric ID for the taxon.
user_ida numeric ID for a specific user.
project_ida numeric ID for a specific project.
place_ida numeric ID for a specific place.
endemica logical value. Filters for endemic species.
introduceda logical value. Filters for introduced species.
threateneda logical value. Filters for threatened species.
qualitya character string. Must be 'casual' or 'research'.
geoa logical value. If TRUE, filters for observations with coordinates.
annotationa numeric vector of length 2 (term_id, term_value_id).
boundsa bounding box. Accepts an sf object with CRS EPSG:4326 (WGS84) or a numeric vector c(nelat, nelng, swlat, swlng).
- quiet
Logical. If
TRUE, suppresses console progress messages. DefaultFALSE.- limit_download
Logical. If
TRUE(default), each subdivided request is capped at 10,000 records as per API limitation.
Value
A tibble with one row per observation and the same columns
documented in mnk_obs. Returns an empty tibble if no data
is found.
Details
This is a wrapper around mnk_obs that uses the
updated_at filter. If the total number of records since
day_update exceeds 10,000, the function splits the query by
year/month, and if necessary, by day.
Examples
if (FALSE) { # \dontrun{
# Download all observations updated since a date
obs <- mnk_obs_update("2026-03-31", taxon_name = "Diplodus vulgaris")
# Use with bounds (must be EPSG:4326)
barcelona <- c(41.5, 2.3, 41.2, 2.0)
obs_bc <- mnk_obs_update("2024-01-01",
bounds = barcelona, quiet = TRUE)
} # }
