Learn R Programming

NUETON (version 0.2.0)

TNdfF: Calculate Total N derived from Fertilizer (TNdfF)

Description

The total quantity of plant or soil N that is derived from fertilizer. Formula: TNdfF = (NdfF/100) * (PlantN or SoilN)

Usage

TNdfF(NdfF, PlantN = NULL, SoilN = NULL)

Value

A numeric vector of TNdfF values.

Arguments

NdfF

N derived from Fertilizer expressed as a percentage (0-100).

PlantN

Optional numeric vector for plant N content.

SoilN

Optional numeric vector for soil N content.

Examples

Run this code
NdfF <- c(15, 20)
PlantN <- c(3.0, 3.5)

# Case 1: Using Plant N
TNdfF(NdfF, PlantN = PlantN)

# Case 2: Using Soil N (must specify SoilN explicitly)
SoilN <- c(100, 120)
TNdfF(NdfF, SoilN = SoilN)

Run the code above in your browser using DataLab