R/npn_dataset.R

Defines functions npn_datasets

Documented in npn_datasets

#' Get Datasets
#'
#' Returns a complete list of information about all datasets integrated into the NPN
#' dataset. Data can then be pulled for individual datasets using their unique IDs.
#' @export
#' @template curl
#' @return data.frame of datasets and their IDs.
#' @examples \dontrun{
#' npn_datasets()
#' }
npn_datasets <- function(...) {
  tibble::as_tibble(
    npn_GET(paste0(base(), 'observations/getDatasetDetails.json'), list(), TRUE, ...)
  )
}
usa-npn/rnpn documentation built on Feb. 4, 2024, 7:29 a.m.