Nothing
#' @title Retrieve Macrostrat database statistics
#' @description A function to retrieve various statistics about each Macrostrat
#' project in the Macrostrat database. Function is called without
#' user-specified arguments.
#' @return A `data.frame` containing the following columns:
#' \itemize{
#' \item \code{project_id}: The unique identification number of the Macrostrat
#' project.
#' \item \code{project}: The name of the Macrostrat project.
#' \item \code{columns}: The number of Macrostrat columns associated with the
#' project.
#' \item \code{packages}: The number of Macrostrat packages/sections
#' associated with the project.
#' \item \code{units}: The number of Macrostrat units associated with the
#' project.
#' \item \code{pbdb_collections}: The number of Paleobiology Database
#' collections associated with the project.
#' \item \code{measurements}: The number of measurements associated with the
#' project.
#' \item \code{t_polys}: The number of spatial polygons associated with the
#' project.
#' }
#' @section Developer(s):
#' William Gearty
#' @section Reviewer(s):
#' Bethany Allen
#' @examples
#' \donttest{
#' # Return all project statistics
#' ex1 <- get_stats()
#' }
#' @export
#' @family meta
get_stats <- function() {
# Get request
dat <- GET_macrostrat(endpoint = "stats", query = list(all = TRUE),
format = "json")
# Return data
return(dat)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.