convert.co: CO numbers

View source: R/convert_co.R

convert.coR Documentation

CO numbers

Description

Interchanges potato and sweetpotato short labels with Crop Ontology variable numbers.

Usage

convert.co(
  dfr,
  direction = c("labels.to.co", "co.to.labels"),
  crop = c("auto", "pt", "sp")
)

Arguments

dfr

The name of the data frame.

direction

labels.to.co or co.to.labels

crop

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

Details

All labels (lower or upper case) listed in functions ptont() and spont() are interchanged with CO variable numbers.

Value

It returns a data frame with all short labels for variables interchanged with Crop Ontology variable numbers.

Author(s)

Raul Eyzaguirre.

Examples

convert.co(potatoyield)
convert.co(pjpz09)

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