Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_OSD_JSON

Fetch Official Series Description Raw Data in JSON format


Description

Fetch Official Series Description Raw Data in JSON format

Usage

get_OSD_JSON(series, base_url = NULL)

Arguments

series

A character vector of Official Series names e.g. "Chewacla"

base_url

Optional: alternate JSON repository path. Default: NULL uses https://github.com/ncss-tech/SoilKnowledgeBase.

Details

The default base_url is to "raw" JSON files stored in a GitHub repository that is regularly updated from the official source of Series Descriptions. Using format: https://raw.githubusercontent.com/ncss-tech/SoilKnowledgeBase/main/inst/extdata/OSD/{LETTER}/{SERIES}.json

Value

A data.frame with 1 row per series, and 1 column per "section" in the OSD as defined in National Soil Survey Handbook

Examples

if(requireNamespace("curl") &
   curl::has_internet()) {
   
series <- c("Musick", "Hector", "Chewacla")
get_OSD_JSON(series)
}

soilDB

Soil Database Interface

v2.6.1
GPL (>= 3)
Authors
Dylan Beaudette [aut], Jay Skovlin [aut], Stephen Roecker [aut], Andrew Brown [aut, cre]
Initial release
2021-04-7

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.