get.invalid.names: Get column names not defined in crop ontology

View source: R/check_names.R

get.invalid.namesR Documentation

Get column names not defined in crop ontology

Description

Run get_invalid_names() after running check.names()

Usage

get.invalid.names(dfr, add = NULL, crop = c("auto", "pt", "sp"))

Arguments

dfr

The name of the data frame.

add

Additional variables. See details.

crop

"auto" for autodetection or "pt" for potato and "sp" for sweetpotato.

Details

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.

Type ptont() or spont() to see the list of variables and corresponding short labels and CO numbers. Additional variables are checked for extreme values only.

Value

A character vector of invalid column names

Author(s)

Raul Eyzaguirre.

Examples

## Not run: 
tmp <- check.names(potatoyield)
get.invalid.names(tmp)
tmp <- check.names(pjpz09)
get.invalid.names(tmp)

## End(Not run)

reyzaguirre/st4gi documentation built on March 29, 2025, 10:38 p.m.