batch {Rquefts} | R Documentation |
Batch QUEFTS model predictions
Description
Make many predictions with a QUEFTS model.
Usage
## S4 method for signature 'Rcpp_QueftsModel'
batch(x, supply, fert, yatt, leaf_ratio, stem_ratio, var="yield")
Arguments
x |
QUEFTSModel |
supply |
matrix or data.frame with soil nutrient supply data for N, P, and K |
fert |
matrix or data.frame with fertilizer nutrient supply data for N, P, and K |
yatt |
numeric. Attainable yield |
leaf_ratio |
positive numeric (typically between 0 and 1) indicating the leaf weight relative to the storage organ weight. For example: 0.46 for maize, 0.17 for potato, and 0.18 for rice |
stem_ratio |
positive numeric (typically between 0 and 1) indicating the stem weight relative to the storage organ weight, For example: 0.56 for maize, 0.14 for potato, and 0.67 for rice |
var |
character. Output variable name. Either "yield" or "gap" |
Value
numeric or matrix (if var="gap"
)
Examples
potato <- quefts_crop("potato")
q <- quefts(crop=potato)
fert=cbind(c(0,100), c(0,200), c(0,30))
supply=cbind(50,50,25)
yatt <- 10000
batch(q, supply, fert, yatt, 0.45, 0.4)
batch(q, supply, fert, yatt, 0.45, 0.4, var="gap")
[Package Rquefts version 1.2-3 Index]