Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brownag/nasis

National Soil Information System (‘NASIS’) Data Model Abstraction Layer
https://github.com/brownag/nasis

database nasis nrcs r soil soil-survey spsd usda

Last synced: 19 days ago
JSON representation

National Soil Information System (‘NASIS’) Data Model Abstraction Layer

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# {nasis}


The goal of {nasis} is to provide a National Soil Information System ('NASIS') Data Model abstraction layer via 'dm' and 'DBI'

## Installation

You can install the development version of {nasis} like so:

``` r
remotes::install_github("brownag/nasis")
```

## Example

This is a basic example of how to use an SQLite data source (an 'RSQLite' `DBIConnection`) to create a NASIS data model object.

```{r example}
library(nasis)
# remotes::install_github("brownag/soilDBdata") # install (if needed)

dsn <- system.file("extdata", "fetchNASIS_pedons.sqlite", package = "soilDBdata")

d <- nasis(dsn)

class(d)

d$site
```