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, ...)
  )
}

Try the rnpn package in your browser

Any scripts or data that you put into this service are public.

rnpn documentation built on May 29, 2024, 11:12 a.m.