View source: R/get_neon_data.R
downloadSoilData | R Documentation |
Downloads the following NEON data product:
DP1.10086.001: "Soil physical and chemical properties, periodic", tables sls_soilCoreCollection, sls_soilMoisture, sls_soilpH, and sls_soilChemistry.
This function uses loadByProduct
to conduct the downloads.
downloadSoilData(
sites = "all",
startYrMo = NA,
endYrMo = NA,
dpID = c("DP1.10086.001"),
outDir = NULL,
rmSamplingImpractical = TRUE,
rmNTransBouts = TRUE,
rmFailedCNDataQF = TRUE
)
sites |
Either the string 'all' (default), meaning all available sites, or a character vector of 4-letter NEON site codes, e.g. c('ONAQ','RMNP'). Defaults to PRESET_SITES parameter in params.R. |
startYrMo , endYrMo |
Either NA (default), meaning all available dates, or a character vector in the form YYYY-MM, e.g. 2017-01. Defaults to PRESET_START_YR_MO in params.R. |
dpID |
NEON data product(s) of interest. Default is DP1.10086.001 ("Soil physical and chemical properties, periodic"). |
outDir |
Directory where a copy of the downloaded soil data will be saved. By default (NULL), this is NEONMICROBE_DIR_SOIL(). If no copy should be saved, set outDir=FALSE. |
rmSamplingImpractical |
Default TRUE. Whether to remove soil data records when sampling did not actually occur. |
rmNTransBouts |
Default TRUE. Whether to remove soil data records from bouts to collect N-transformation incubation tubes. These are only useful for calculating N-transformation rates and aren't associated with microbial data. |
rmFailedCNDataQF |
Default TRUE. Whether to remove soil data records where cnPercentQF indicates failure. While other QF fields exist and are simply passed to output, this particular check may be desirable because this function later aggregates nitrogenPercent and organicCPercent values for cnSampleIDs with analytical replicates. |
A dataframe consisting of joined soil data records from DP1.10086 ("Soil physical and chemical properties, periodic"). Otherwise, no value is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.