NRcalcCpp | R Documentation |
Function for calculating the net-return for different management scenarios under the selected economic conditions for each location in the data frame. For each point the net-retrun is calculated with the base price, and the opposite system type's base price. If the rate is equal to the farmer selected or the minimum experimental rates, the net-return for those economic conditions are calculated.
NRcalcCpp( df, Bp, B0pd, B1pd, B2pd, B3pd, CEXP, BpOpp, FC, fs, ssAC, predInd, rr, expCol, yldCol, proCol, NRcol, NRminCol, NRoppCol, NRfsCol, AAmin )
df |
A matrix with the experimental rate and predicted responses for each data point in the field. |
Bp |
The base price corresponding to the price for the system type selected by the user (i.e. conventional or organic). |
B0pd |
The intercept for the protein premium/dockage equation. |
B1pd |
The coefficient for protein in the protein premium/dockage equation. |
B2pd |
The coefficient for protein squared for the protein premium/dockage equation. |
B3pd |
The coefficient for protein cubed for the protein premium/dockage equation. |
CEXP |
The cost of the experimental input. |
BpOpp |
The base price corresponding to the price for the opposite system type selected by the user (i.e. conventional or organic). |
FC |
The fixed costs associated with production per acre, not including the experimental input. |
fs |
The farmer selected rate or the rate of the experimental input that the farmer would have applied uniformly to the field. |
ssAC |
The cost of site-specific technology or variable rate application. |
predInd |
Indicator for whether protein is included or not in the net-return calculations. 1 = yes, 0 = no. |
rr |
Number of rows in df. |
expCol |
Indicator for the position of the experimental variable column in df. |
yldCol |
Indicator for the position of the predicted yield variable column in df. |
proCol |
Indicator for the position of the predicted protein variable column in df. |
NRcol |
Indicator for the position of the net-return column in df. |
NRminCol |
Indicator for the position of the net-return column in df for the minimum experimental rate applied. |
NRoppCol |
Indicator for the position of the net-return column in df when net-return calculated with the opposite base price as for the system. |
NRfsCol |
Indicator for the position of the net-return column in df for the farmer selected rate. |
AAmin |
The minimum experimental rate in the range of rates to simulate in (i.e. 0 lbs N/ac). |
df Matrix filled in with net-returns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.