https://github.com/ropensci/rgbif
Raw File
Tip revision: 0baf42721f7065049cc1ccce292e23258da7899f authored by John Waller on 03 April 2024, 09:53:33 UTC
adding support for gbifId downloads
Tip revision: 0baf427
overload_classes.R
# gbif class sub-setters -------------------
# `[[.gbif` <- function(x, i) {
#   #y <- NextMethod()
#   if (inherits(i, "character")) {
#     tmp <- x[names(x) %in% i][[1]]
#   } else {
#     tmp <- x[[i]]
#   }
#   structure(tmp, class = "gbif",
#             args = attr(x, 'args'),
#             type = 'single',
#             return = attr(x, 'return'))
#   #x[names(x) %in% i][1]
# }

# `[.gbif` <- function(x, i) {
#   tmp <- x[names(x) %in% i]
#   structure(tmp, class = "gbif",
#             args = attr(x, 'args'),
#             type = 'single',
#             return = attr(x, 'return'))
# }
back to top