https://github.com/ncss-tech/genhz-rules
Keeping track of micro-correlation decisions, related to the functional grouping of genetic soil horizon designations
https://github.com/ncss-tech/genhz-rules
Last synced: 3 months ago
JSON representation
Keeping track of micro-correlation decisions, related to the functional grouping of genetic soil horizon designations
- Host: GitHub
- URL: https://github.com/ncss-tech/genhz-rules
- Owner: ncss-tech
- Created: 2017-06-21T22:33:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-21T22:47:55.000Z (almost 8 years ago)
- Last Synced: 2025-01-13T00:43:51.090Z (4 months ago)
- Language: R
- Size: 3.91 KB
- Stars: 0
- Watchers: 25
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# genHz-rules
Keeping track of micro-correlation decisions, related to the functional grouping of genetic soil horizon designations.Some options:
* .R files, one per soil series concept
* pedon records in NASIS via "component layer ID"
* R lists, all in one super-list
* a list of R S3/S4 objects
* JSON representation that can be converted to a named list in R via `jsonlite` functions
* files associated with the [`soilReports` package](https://github.com/ncss-tech/soilReports)
* ???
## JSON
### Encode
```r
library(jsonlite)
# get an example, results in a list called "gen.hz.rules"
source('https://raw.githubusercontent.com/ncss-tech/genHz-rules/master/named-list-example.R')
# convert to JSON for editing, ...?
toJSON(gen.hz.rules, pretty = TRUE)
```### Decode
```r
library(jsonlite)
# convert JSON representation to named list
ghl <- fromJSON('https://raw.githubusercontent.com/ncss-tech/genHz-rules/master/example.json')
```