View source: R/nematode_energy_flux.R
NEF | R Documentation |
Nematode Energy Footprints (NEF) Calculation
NEF(data, abundance, AE = list(Ba = 0.6, Fu = 0.38, Pp = 0.25, Op = 0.5), ...)
## S3 method for class 'data.frame'
NEF(data, abundance, AE = list(Ba = 0.6, Fu = 0.38, Pp = 0.25, Op = 0.5), ...)
## S3 method for class 'matrix'
NEF(data, abundance, AE = list(Ba = 0.6, Fu = 0.38, Pp = 0.25, Op = 0.5), ...)
## Default S3 method:
NEF(data, abundance, AE = list(Ba = 0.6, Fu = 0.38, Pp = 0.25, Op = 0.5), ...)
data |
A data.frame or matrix containing nematode genus abundance data. Rows represent samples, and columns represent genera. |
abundance |
A data.frame containing abundance information for the samples. It must match the row names of the input data. |
AE |
A named list specifying the assimilation efficiencies for nematode feeding groups. Must contain the following elements:
|
... |
Additional arguments (currently unused). |
A list object of class "NEF"
containing the following components:
A list with original input data:
data - Original genus abundance data.frame or matrix of nematode genera
Abundance - Total abundance data used for calculations
A list containing energy flow calculations:
Energy.flux: Data frame of energy flows (\mu g~C~100g^{-1}~dry~soil
) per feeding group. Columns:
Sample.ID - Sample identifier
BaEF - Bacterial feeders energy flows
FuEF - Fungal feeders energy flows
PpEF - Plant feeders energy flows
OpEF - Omnivores/Predators energy flows
TNEF - Total energy flows of nematodes
C.flux.node: Data frame of Biomass (\mu g~C~100g^{-1}~dry~soil
) per feeding group. Columns:
Sample.ID - Sample identifier
Ba - Bacterial feeders biomass
Fu - Fungal feeders biomass
Pp - Plant feeders biomass
Op - Omnivores/Predators biomass
C.flux.path: Data frame of energy flows (\mu g~C~100g^{-1}~dry~soil~day^{-1}
). Columns:
Sample.ID - Sample identifier
R.to.Ba - Carbon flux from Resources to bacterial feeders
R.to.Fu - Carbon flux from Resources to fungal feeders
R.to.Pp - Carbon flux from Resources to plant feeders
Ba.to.Op - Carbon flux from bacterial to omnivorous channels
Fu.to.Op - Carbon flux from fungal to omnivorous channels
Pp.to.Op - Carbon flux from plant to omnivorous channels
U: Data frame of ecosystem stability indices. Columns:
Sample.ID - Sample identifier
U - Energy flow uniformity index
data <- data.frame(
Cephalobus = c(10, 20, 30),
Eucephalobus = c(5, 10, 12),
Acrobeloides = c(1, 2, 3),
Caenorhabditis = c(5, 8, 15),
Aphelenchus = c(5, 13, 11),
Leptonchus = c(3, 10, 15),
Pratylenchus = c(9, 2, 15),
Tylenchus = c(5, 0, 15),
Mesodorylaimus = c(7, 10, 18),
Discolaimus = c(1, 10, 25),
row.names = c("Sample1", "Sample2", "Sample3")
)
abundance <- data.frame(
Abundance = c(100, 200, 300),
row.names = c("Sample1", "Sample2", "Sample3")
)
result <- NEF(data, abundance)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.