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", "uk"))

Arguments

dfr

The name of the data frame.

add

Additional variables.

crop

"auto" for autodetection or "pt" for potato, "sp" for sweetpotato and "uk" for unknown.

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.

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 July 5, 2025, 6:38 a.m.