| get_OSD | R Documentation | 
Get Official Series Description Data from JSON, HTML or TXT sources
get_OSD(
  series,
  base_url = NULL,
  result = c("json", "html", "txt"),
  fix_ocr_errors = FALSE,
  verbose = FALSE
)
get_OSD_JSON(series, base_url = NULL)
| series | A character vector of Official Series names e.g.  | 
| base_url | Optional: alternate JSON/HTML/TXT repository path. Default:  | 
| result | Select  | 
| fix_ocr_errors | Default:  | 
| verbose | Print errors and warning messages related to HTTP requests? Default:  | 
The default base_url for result="json" is to 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 for JSON. And "https://soilseriesdesc.sc.egov.usda.gov/OSD_Docs/{LETTER}/{SERIES}.html is for result="html" (official source).
fix_ocr_errors by default is turned off (FALSE). When TRUE, assume that in color data hue/value/chroma lowercase "L" ("l") is a 1, and a capital "O" is interpreted as zero. Also, in horizon designations assume lowercase "L" is a 1, and a string that starts with 0 starts with the capital letter "O".
For JSON result: A data.frame with 1 row per series, and 1 column per "section" in the OSD as defined in National Soil Survey Handbook. For TXT or HTML result a list of character vectors containing OSD text with 1 element per series and one value per line.
  series <- c("Musick", "Hector", "Chewacla")
  get_OSD(series)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.