cdt | R Documentation |
Compute derived variables for a given fieldbook data frame.
cdt(
dfr,
method = c("none", "ps", "np"),
value = NULL,
crop = c("auto", "pt", "sp")
)
dfr |
The name of the data frame. |
method |
Method to scale data from plot to hectare level. Options are
plot size |
value |
Value for the method selected in square meters if |
crop |
|
The data frame must use the labels (lower or upper case) listed in
function check.names
.
Conversion from kilograms per plot to tons per hectare can be done using
ps
, the plot size, or np
, the total number of plants that can be
allocated in a full hectare. In both cases computations can be adjusted by the
number of harvested plants if available in the fieldbook. For method = "np"
,
number of plants sowed must be specified to compute non adjusted values.
It returns a data frame with the original and derived variables.
Raul Eyzaguirre.
cdt(potatoyield)
cdt(pjpz09)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.