This helper function takes a vector of words
and tries to match them
with the id
and name
columns of possible gene choices.
Examples
h_parse_genes(
c("a", "2535"),
data.frame(id = as.character(2533:2537), name = letters[1:5])
)
#> id name
#> 1 2533 a
#> 3 2535 c