From 27968a3e6e87ec3082e6ca1f33a22b311a4f657c Mon Sep 17 00:00:00 2001 From: Andrew Gene Brown Date: Tue, 12 Nov 2024 15:47:39 -0800 Subject: [PATCH] fetchNASIS: add ecostatename, ecostateid, commphasename, commphaseid to columns returned from Site Observation table --- DESCRIPTION | 2 +- NEWS.md | 3 +++ R/get_site_data_from_NASIS_db.R | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 729a18b0..2d850b58 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: soilDB Type: Package Title: Soil Database Interface -Version: 2.8.5 +Version: 2.8.6 Authors@R: c(person(given="Dylan", family="Beaudette", role = c("aut"), email = "dylan.beaudette@usda.gov"), person(given="Jay", family="Skovlin", role = c("aut")), person(given="Stephen", family="Roecker", role = c("aut")), diff --git a/NEWS.md b/NEWS.md index ca1f8552..deed16ea 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +# soilDB 2.8.6 (development) + - `fetchNASIS()` and `get_site_data_from_NASIS_db()` now return Ecological Site State and Community Phase information (ecostatename, ecostateid, commphasename, commphaseid columns) from Site Observation table + # soilDB 2.8.5 (2024-11-04) - `fetchLDM()` add support for `area_type` argument with local database connections (`dsn` argument) - `fetchSCAN()` updates: diff --git a/R/get_site_data_from_NASIS_db.R b/R/get_site_data_from_NASIS_db.R index eefb28ae..cbaf7f34 100644 --- a/R/get_site_data_from_NASIS_db.R +++ b/R/get_site_data_from_NASIS_db.R @@ -56,7 +56,8 @@ utmzone, utmeasting, utmnorthing, horizdatnm, longstddecimaldegrees as x_std, latstddecimaldegrees as y_std, longstddecimaldegrees, latstddecimaldegrees, gpspositionalerror, descname as describer, pedonpurpose, pedontype, pedlabsampnum, labdatadescflag, tsectstopnum, tsectinterval, utransectid, tsectkind, tsectselmeth, -elev as elev_field, slope as slope_field, aspect as aspect_field, plantassocnm, +elev as elev_field, slope as slope_field, aspect as aspect_field, +ecostatename, ecostateid, commphasename, commphaseid, plantassocnm, siteobs_View_1.earthcovkind1, siteobs_View_1.earthcovkind2, erocl, bedrckdepth, bedrckkind, bedrckhardness, pmgroupname, hillslopeprof, geomslopeseg, shapeacross, shapedown, slopecomplex, drainagecl,