Title: | Data and Source Code From: Nitrogen Uptake and Allocation Estimates for Spartina Alterniflora and Distichlis Spicata |
---|---|
Description: | Contains data, code, and figures from Hill et al. 2018a (Journal of Experimental Marine Biology and Ecology; <DOI: 10.1016/j.jembe.2018.07.006>) and Hill et al. 2018b (Data In Brief <DOI: 10.1016/j.dib.2018.09.133>). Datasets document plant allometry, stem heights, nutrient and stable isotope content, and sediment denitrification enzyme assays. The data and analysis offer an examination of nitrogen uptake and allocation in two salt marsh plant species. |
Authors: | Troy D. Hill, Nathalie R. Sommer, Caroline R. Kanaskie, Emily A. Santos, and Autumn J. Oczkowski |
Maintainer: | Troy D. Hill <[email protected]> |
License: | GPL-3 |
Version: | 0.2.3 |
Built: | 2024-11-04 05:05:28 UTC |
Source: | https://github.com/troyhill/nitrogenuptake2016 |
A dataframe of masses and heights of stems of Spartina alterniflora and Distichlis spicata. Samples were collected from Colt State Park, Bristol, RI, USA, during May-July 2016. Column descriptions:
allometry
allometry
A dataframe with 170 observations of 6 variables:
Study location (Colt State Park, RI)
Sampling dates
Indicates whether plant was live or dead
Stem height, in centimeters, from the sediment surface to the tip of the longest leaf
Biomass, grams
Species (SPAL or DISP)
Hill, T.D., N.R. Sommer, C.R. Kanaskie, E.A. Santos, A.J. Oczkowski. 2018. Data and source code from: Nitrogen uptake and allocation estimates for Spartina alterniflora and Distichlis spicata. Data In Brief. 21: 466-472. https://doi.org/10.1016/j.dib.2018.09.133.
Hill, T.D., N.R. Sommer, C.R. Kanaskie, E.A. Santos, A.J. Oczkowski. 2018. Nitrogen uptake and allocation estimates for Spartina alterniflora and Distichlis spicata. Journal of Experimental Marine Biology and Ecology 507: 53-60. https://doi.org/10.1016/j.jembe.2018.07.006.
### export to .csv: write.csv(allometry, file = file.path(tempdir(), "allometry.csv"))
### export to .csv: write.csv(allometry, file = file.path(tempdir(), "allometry.csv"))
Convert per mil isotope values to atom percent
ap(perMilValues, isotope = "15N")
ap(perMilValues, isotope = "15N")
perMilValues |
Value to be converted, in per mil notation |
isotope |
can be 13C or 15N |
a numeric value or vector
ap(10); ap(1000)
ap(10); ap(1000)
Parameterize Box-Cox model for mass-height allometry (based on Lu et al. 2016)
bCM(dat, mass = "sample", height = "height_cm", lam.avail = c(-2, -1.5, -1, -2/3, -1/2, -1/3, 0, 1/3, 1/2, 2/3, 1, 1.5, 2), lam.only = FALSE)
bCM(dat, mass = "sample", height = "height_cm", lam.avail = c(-2, -1.5, -1, -2/3, -1/2, -1/3, 0, 1/3, 1/2, 2/3, 1, 1.5, 2), lam.only = FALSE)
dat |
dataframe with data |
mass |
mass column |
height |
height column |
lam.avail |
set of possible lambda values |
lam.only |
if TRUE, lambda is returned. If FALSE, model is returned |
if lam.only is FALSE, a model is returned. If lam.only is TRUE, lambda value is returned.
Lu, Meng, Caplan, Joshua S., Bakker, Jonathan D., Mozdzer, Thomas J., Drake, Bert G., Megonigal, J. Patrick, and Langley, J. Adam. 2016. Allometry data and equations for coastal marsh plants. Ecology. https://doi.org/10.1002/ecy.1600.
### get allometry model for each species CSP <- plyr::dlply(allometry, c("spp"), bCM) CSP.coef <- plyr::ldply(CSP, stats::coef) ### add lambda value CSP.coef$lam <- plyr::ddply(allometry, c("spp"), function(df) bCM(df, lam.only = TRUE))[, "V1"]
### get allometry model for each species CSP <- plyr::dlply(allometry, c("spp"), bCM) CSP.coef <- plyr::ldply(CSP, stats::coef) ### add lambda value CSP.coef$lam <- plyr::ddply(allometry, c("spp"), function(df) bCM(df, lam.only = TRUE))[, "V1"]
Data: Nutrient concentrations, stable isotope ratios, and biomass from destructive mesocosm harvests
CN_mass_data
CN_mass_data
A dataframe with 1192 observations of 16 variables:
Time point of harvest (harvested at one-week intervals)
Unique mesocosm identifier, including species (SA or DS) and mesocosm number
Depth at bottom of sample (only applicable for belowground data)
Sample material; tissue type
Depth interval for sample; indicates the top and bottom depths (e.g., an entry of "5_10" covers the depth interval from 5-10 cm)
Label for each pool (combination of "sample.type" and "depth_bottom")
Same as "pool_label" but with mesocosm ID included
Spartina alterniflora (SA) or Distichlis spicata (DS)
15-N isotope ratio in per mille units
Nitrogen content, decimal fraction (0.015 = 1.5 percent)
13-C isotope ratio in per mille units
Carbon content, decimal fraction (0.015 = 1.5 percent)
Total volume of interval (only applicable for belowground data)
Depth at top of sample (only applicable for belowground data)
Simplified "sample.type" column; leaf numbers dropped, and belowground stems included as "stems"
Total mass (grams) in entire pool; corrects for subsampling of depth intervals
Hill, T.D., N.R. Sommer, C.R. Kanaskie, E.A. Santos, A.J. Oczkowski. 2018. Data and source code from: Nitrogen uptake and allocation estimates for Spartina alterniflora and Distichlis spicata. Data In Brief. 21: 466-472. https://doi.org/10.1016/j.dib.2018.09.133.
Hill, T.D., N.R. Sommer, C.R. Kanaskie, E.A. Santos, A.J. Oczkowski. 2018. Nitrogen uptake and allocation estimates for Spartina alterniflora and Distichlis spicata. Journal of Experimental Marine Biology and Ecology 507: 53-60. https://doi.org/10.1016/j.jembe.2018.07.006.
### export to .csv: write.csv(CN_mass_data, file = file.path(tempdir(), "CN_mass_data.csv"))
### export to .csv: write.csv(CN_mass_data, file = file.path(tempdir(), "CN_mass_data.csv"))
Data: Denitrification enzyme activity and in vitro N2O production rates
dea
dea
A dataframe with six rows and five columns:
Mesocosm ID; equivalent to "new.core.id" in other datasets
Denitrification enzyme activity (units = nanomoles N2O / gram dry mass / hour)
"In vitro" N2O production; no nutrient solution added, just filtered seawater (units = nanomoles N2O / gram dry mass / hour)
Moisture correction factor (1 - gravimetric water content)
Bulk density (grams per cubic centimeter)
Hill, T.D., N.R. Sommer, C.R. Kanaskie, E.A. Santos, A.J. Oczkowski. 2018. Data and source code from: Nitrogen uptake and allocation estimates for Spartina alterniflora and Distichlis spicata. Data In Brief. 21: 466-472. https://doi.org/10.1016/j.dib.2018.09.133.
Hill, T.D., N.R. Sommer, C.R. Kanaskie, E.A. Santos, A.J. Oczkowski. 2018. Nitrogen uptake and allocation estimates for Spartina alterniflora and Distichlis spicata. Journal of Experimental Marine Biology and Ecology 507: 53-60. https://doi.org/10.1016/j.jembe.2018.07.006.
### export to .csv: write.csv(dea, file = file.path(tempdir(), "dea.csv"))
### export to .csv: write.csv(dea, file = file.path(tempdir(), "dea.csv"))
Calculate net aboveground primary production
nappCalc2(dataset, liveCol = "mass", deadCol = "dead", yearCol = "year", siteCol = "pot2", timeCol = "day", annualReset = "TRUE", MilnerHughes = "TRUE", EOS = "FALSE", EOS_window = 1, summarize = "TRUE")
nappCalc2(dataset, liveCol = "mass", deadCol = "dead", yearCol = "year", siteCol = "pot2", timeCol = "day", annualReset = "TRUE", MilnerHughes = "TRUE", EOS = "FALSE", EOS_window = 1, summarize = "TRUE")
dataset |
data |
liveCol |
live biomass |
deadCol |
dead biomass |
yearCol |
year |
siteCol |
site/plot/experimental unit identifier |
timeCol |
time column (sequential measurements within each year) |
annualReset |
should data be reset to zero each year |
MilnerHughes |
If "TRUE", Milner-Hughes NAPP is calculated |
EOS |
If "TRUE", end-of-season live biomass is reported |
EOS_window |
window for EOSL |
summarize |
If "TRUE", output will be a list with two elements: incremental data and summary data |
list
Convert N2O units from nanomoles of N2O per hour to milligrams of N per day
nmolHr_mgDay(x)
nmolHr_mgDay(x)
x |
numeric or integer value(s) |
numeric value
nmolHr_mgDay(dea$DEA)
nmolHr_mgDay(dea$DEA)
Calculates standard error
se(x)
se(x)
x |
numeric or integer |
value
se(CN_mass_data$n_pct) plyr::ddply(CN_mass_data, plyr::.(species, pool_label), plyr::summarise, se = se(n_pct))
se(CN_mass_data$n_pct) plyr::ddply(CN_mass_data, plyr::.(species, pool_label), plyr::summarise, se = se(n_pct))
A dataframe of Spartina alterniflora and Distichlis spicata stem heights, from the mesocosms used in 15N study. Samples were collected from Colt State Park, Bristol, RI, USA, and grown in the US EPA Atlantic Ecology Division greenhouse.
stemHeights
stemHeights
A dataframe with 3315 observations of 10 variables:
Measurement date
Mesocosm number
Species, either Spartina alterniflora (SA) or Distichlis spicata (DS)
Indicates whether plant was live or dead
Plants were tagged to permit growth rate calculations; this is the plant tag number
Stem height, in centimeters, from the sediment surface to the tip of the longest leaf
Unique plant identifier, combining species, mesocosm number, and plant tag number
Measurement date expressed in YYYY-MM-DD format (and structured as a POSIXct column in R)
Days since last measurement
Mesocosm ID, including species and a unique mesocosm number (time-zero mesocosms re-numbered as mesocosms 13, 14, and 15)
Hill, T.D., N.R. Sommer, C.R. Kanaskie, E.A. Santos, A.J. Oczkowski. 2018. Data and source code from: Nitrogen uptake and allocation estimates for Spartina alterniflora and Distichlis spicata. Data In Brief. 21: 466-472. https://doi.org/10.1016/j.dib.2018.09.133.
Hill, T.D., N.R. Sommer, C.R. Kanaskie, E.A. Santos, A.J. Oczkowski. 2018. Nitrogen uptake and allocation estimates for Spartina alterniflora and Distichlis spicata. Journal of Experimental Marine Biology and Ecology 507: 53-60. https://doi.org/10.1016/j.jembe.2018.07.006.
### export to .csv: write.csv(stemHeights, file = file.path(tempdir(), "stemHeights.csv"))
### export to .csv: write.csv(stemHeights, file = file.path(tempdir(), "stemHeights.csv"))