Learn R Programming

NUETON (version 0.2.0)

sNBI: Calculate N Balance Index of a System (sNBI)

Description

The accumulation or reduction of soil N over a set time. Formula: sNBI = Ni - No - delSoilN

Usage

sNBI(Ni, No, delSoilN)

Value

A numeric vector of sNBI values.

Arguments

Ni

Sum total of N inputs (vector or value).

No

Sum total of N outputs (vector or value).

delSoilN

Change in total soil N value.

Examples

Run this code
Ni <- c(100, 120)
No <- c(80, 90)
delSoilN <- c(5, -2)
sNBI(Ni, No, delSoilN)

Run the code above in your browser using DataLab