Get Interaction Matrix. Constructs an interaction matrix indicating whether source taxa (rows) or target taxa (columns) are known to interact with given type.
Source:R/rglobi.R
get_interaction_matrix.Rd
Get Interaction Matrix. Constructs an interaction matrix indicating whether source taxa (rows) or target taxa (columns) are known to interact with given type.
Arguments
- source.taxon.names
list of source taxon names (e.g. list('Mammalia', 'Aves', 'Ariopsis felis'))
- target.taxon.names
list of target taxon names
- interaction.type
the preferred interaction type (e.g. preysOn)
- opts
list of options to configure GloBI API
- read_csv
function used to find csv associated to query url, defaulting to online query method
See also
Other interactions:
get_interaction_types()
,
get_interactions_by_taxa()
,
get_interactions_by_type()
,
get_interactions()
,
get_predators_of()
,
get_prey_of()
Examples
# \donttest{
get_interaction_matrix("Homo sapiens", "Mammalia", "interactsWith")
#> Warning: Default results limit reached. Consider increasing limit parameter and/or using pagination to retrieve all results. See rglobi vignette section on pagination for help modifying limit/skip parameters.
#> .
#> source.taxon.name Mammalia
#> 1 Homo sapiens 1
# }