## Not run:
# ## Example for species name(s) as input
# x <- "Fagus sylvatica"
# pathogens <- associations(x, database = "both", clean = TRUE, syn_include = TRUE,
# spec_type = "plant", process = TRUE)
# x <- "Rosellinia ligniaria"
# hosts <- associations(x, database = "both", clean = TRUE, syn_include = TRUE,
# spec_type = "fungus", process = TRUE)
# is.element("Rosellinia ligniaria", pathogens$association[[1]])
# is.element("Fagus sylvatica", hosts$association[[1]])
#
# ## Example for genus/genera name(s) as input
# x <- "Zehneria"
# # or
# x <- c("Zehneria", "Momordica")
# hosts <- associations(x, database = "both", clean = TRUE, syn_include = TRUE,
# spec_type = "plant", process = TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab