Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 7 days ago
JSON representation
National Soil Information System (‘NASIS’) Data Model Abstraction Layer
- Host: GitHub
- URL: https://github.com/brownag/nasis
- Owner: brownag
- License: cc0-1.0
- Created: 2023-01-13T02:35:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-26T02:24:59.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T05:17:45.780Z (about 2 months ago)
- Topics: database, nasis, nrcs, r, soil, soil-survey, spsd, usda
- Language: R
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
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
```