check.names | R Documentation |
Check that fieldbook factors and variables' names correspond with the names defined in crop ontology https://cropontology.org and in the potato and sweetpotato CIP protocols.
check.names(dfr, crop = c("auto", "pt", "sp", "uk"))
dfr |
The name of the data frame. |
crop |
|
The following list of factors are recognized:
plot
: The plot number.
row
: The row number in the field.
col
: The columnt number in the field.
rep
: The replication number.
block
: The block number.
loc
: The location name.
year
: The year.
season
: The season.
env
: The environment name.
geno
: The genotype name.
is_a_control
: Identification variable for control checks (1 for
checks and NA for test genotypes).
type
: The genotype type (clone, entry, parent, control, etc).
treat
: The treatment name.
Type ptont()
or spont()
to see the list of variables and
corresponding short labels and CO numbers.
It returns:
The fieldbook data frame with all column names in lowercase and with some possible modifications in the names.
A list of warnings for all the column names that have been changed.
A list of warnings for all the column names not recognized.
Raul Eyzaguirre.
check.names(potatoyield)
check.names(pjpz09)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.