View source: R/check_nematode_genus.R
check_nematode_genus | R Documentation |
This generic function validates nematode genus names by checking their existence in a reference database (nematode.info). It supports multiple input types and provides flexible output formats.
check_nematode_genus(Query.genus, Query.col = NULL, show.details = TRUE, ...)
## S3 method for class 'character'
check_nematode_genus(Query.genus, Query.col = NULL, show.details = TRUE, ...)
## S3 method for class 'data.frame'
check_nematode_genus(Query.genus, Query.col, show.details = TRUE, ...)
## Default S3 method:
check_nematode_genus(Query.genus, Query.col = NULL, show.details = TRUE, ...)
Query.genus |
Input to check: can be |
Query.col |
When input is |
show.details |
Logical controlling output format:
|
... |
Additional arguments (currently unused). |
Output varies by input type and show.details:
For character vector
input:
show.details = TRUE: data.frame with query, existence, and reference data
show.details = FALSE: character vector of invalid genera
For data.frame
input: same as character input for the specified column
For unsupported types: error message
# Check character vector
check_nematode_genus(c("Caenorhabditis", "Wrong"))
# Check data.frame column
df <- data.frame(genus = c("Meloidogyne", "XXX"))
check_nematode_genus(Query.genus = df, Query.col = "genus")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.