Skip to contents

This internal function provides a refining of the output of function taxon_id_worms. It prints a list of possible matches and possibly enables the user to interactively make his choice.

Usage

taxon_id_worms_refine(
  input,
  taxaColumn = 1,
  interaction = FALSE,
  choiceNumber = NULL
)

Arguments

input

a tibble. The output of taxon_ID_Worms.

taxaColumn

a numeric. The cardinal number of the column where species list is. Default is 1.

interaction

a boolean. When TRUE the user can interact with the choice of one of the proposed matching. Default is FALSE.

choiceNumber

a numeric. The number of selected choice. Default is NULL. When NULL no choice is performed.

Value

In interactive mode or when the choiceNumber is NULL the output of the function is a tibble with the refinement of the input, else the function simply returns the unchanged input.

References

Wickham H, François R, Henry L, Müller K (2022). dplyr: A Grammar of Data Manipulation. R package version 1.0.9, https://CRAN.R-project.org/package=dplyr.

Author

Alessandro Oggioni, phD (2021) oggioni.a@irea.cnr.it

Paolo Tagliolato, PhD (2021) tagliolato.p@irea.cnr.it