gather_soil_stability: Convert soil stability data into tall, tidy data frame

gather_soil_stabilityR Documentation

Convert soil stability data into tall, tidy data frame

Description

Given soil stability create a tall format data frame usable by other terradactyl functions.

Usage

gather_soil_stability_terradat(
  dsn = NULL,
  tblSoilStabDetail = NULL,
  tblSoilStabHeader = NULL
)

gather_soil_stability_lmf(dsn = NULL, file_type = "gdb", SOILDISAG = NULL)

gather_soil_stability(
  dsn = NULL,
  source,
  file_type = "gdb",
  tblSoilStabDetail = NULL,
  tblSoilStabHeader = NULL,
  SOILDISAG = NULL
)

Arguments

dsn

Character string. The full filepath and filename (including file extension) of the geodatabase containing the table of interest. This field is unnecessary if you supply either both of tblSoilStabDetail and tblSoilStabHeader (AIM/DIMA/TerrADat) or SOILHORIZON (LMF/NRI).

tblSoilStabDetail

Dataframe of the data structure tblSoilStabDetail from the DIMA database with the addition of PrimaryKey and DBKey fields. Use when data source is AIM, DIMA, or TerrADat; alternately provide dsn.

tblSoilStabHeader

Dataframe of the data structure tblSoilStabHeader from the DIMA database with the addition of PrimaryKey and DBKey fields. Use when data source is AIM, DIMA, or TerrADat; alternately provide dsn.

source

Character string. The data source format, can be "AIM", "TerrADat", "DIMA", "LMF", or "NRI" (case independent).

SOILHORIZON

Dataframe of the data structure SOILHORIZON from LMF/NRI database with the addition of PrimaryKey and DBKey fields. Use when data source is LMF or NRI; alternately provide dsn.

Value

A tall data frame containing soil horizon data.

See Also

Other <gather>: gather_all(), gather_gap(), gather_height(), gather_lpi(), gather_plot_characterization(), gather_rangeland_health(), gather_soil_horizon(), gather_soil_summary(), gather_species_inventory()

Examples

gather_soil_stability(dsn = "Path/To/AIM_Geodatabase.gdb",
                      source = "AIM")
gather_soil_stability(dsn = "Path/To/LMF_Geodatabase.gdb",
                      source = "LMF")

aim_soilstabdetail <- read.csv("Path/To/tblSoilStabDetail.csv")
aim_soilstabheader <- read.csv("Path/To/tblSoilStabHeader.csv")
gather_soil_stability(source = "AIM",
                      tblSoilStabDetail = aim_soilstabdetail,
                      tblSoilStabHeader = aim_soilstabheader)

lmf_horizons <- read.csv("Path/To/SOILHORIZON.csv")
gather_soil_stability(source = "LMF",
                      SOILHORIZON = lmf_horizons)

smccord/terradactyl documentation built on Dec. 1, 2023, 7:37 p.m.