fertilizer: Helper functions to go from fertilizers to nutrients

FertilizersR Documentation

Helper functions to go from fertilizers to nutrients

Description

Computes the amount of nutrients given a rate of fertilizer.

Usage

fertilizers()
nutrientRates(supply, treatment) 

Arguments

supply

data.frame with columns "N", "P", "K" expressed as percentage of the product (row)

treatment

amounts applied

Examples

# fertilizer product list
fert <- fertilizers()
# shortening some of the names for display
fert[,2] = substr(fert[,2], 1, 20)
# contents are expressed as a percentage.
fert

myferts <- fert[c(8,15), ] 
nutrientRates(myferts, c(100,50))

Rquefts documentation built on Oct. 24, 2023, 5:07 p.m.