View source: R/calculate_all.R
| calculate_nue_batch | R Documentation |
Automatically detects available data columns and calculates all 23 NUE indicators.
calculate_nue_batch(
data,
yield_f = "YieldF",
yield_0 = "Yield0",
fert_n = "FertN",
plant_n_f = "PlantNf",
plant_n_0 = "PlantN0",
yield_n = "YieldN",
soil_n = "SoilN",
plant_bm = "PlantBM",
plant_15n = "Plant15N",
fert_15n = "Fert15N",
gr = "GR",
n_con = "Ncon",
n_rec = "Nrec",
n_loss = "Nloss",
n_in = "Ni",
n_out = "No",
delta_soil_n = "delSoilN",
mrt = "MRT"
)
data |
A dataframe containing experimental data. |
yield_f |
Column name for Fertilized Yield. Default: "YieldF" |
yield_0 |
Column name for Control Yield. Default: "Yield0" |
fert_n |
Column name for Fertilizer N input. Default: "FertN" |
plant_n_f |
Column name for Plant N (fertilized). Default: "PlantNf" |
plant_n_0 |
Column name for Plant N (control). Default: "PlantN0" |
yield_n |
Column name for N removed as yield. Default: "YieldN" |
soil_n |
Column name for Soil N. Default: "SoilN" |
plant_bm |
Column name for Plant Biomass. Default: "PlantBM" |
plant_15n |
Column name for Plant 15N excess. Default: "Plant15N" |
fert_15n |
Column name for Fertilizer 15N excess. Default: "Fert15N" |
gr |
Column name for Plant Growth Rate. Default: "GR" |
n_con |
Column name for N available for consumption. Default: "Ncon" |
n_rec |
Column name for N recycled. Default: "Nrec" |
n_loss |
Column name for N lost from system. Default: "Nloss" |
n_in |
Column name for Total N Input (System). Default: "Ni" |
n_out |
Column name for Total N Output (System). Default: "No" |
delta_soil_n |
Column name for Change in Soil N. Default: "delSoilN" |
mrt |
Column name for Mean Residency Time. Default: "MRT" |
A dataframe with new columns appended for every calculable metric.
# Create a simple dataset
df <- data.frame(
YieldF = c(3.5, 4.2, 5.0),
Yield0 = c(2.0, 2.5, 3.0),
FertN = c(10, 10, 10)
)
# Run the batch calculator
result <- calculate_nue_batch(df)
# View calculated AE column
print(result$AE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.