# 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)
Run the code above in your browser using DataLab