Learn R Programming

rglobi (version 0.2.9)

get_interaction_matrix: Get Interaction Matrix. Constructs an interaction matrix indicating whether source taxa (rows) or target taxa (columns) are known to interact with given type.

Description

Get Interaction Matrix. Constructs an interaction matrix indicating whether source taxa (rows) or target taxa (columns) are known to interact with given type.

Usage

get_interaction_matrix(source.taxon.names = list("Homo sapiens"), target.taxon.names = list("Mammalia"), interaction.type = "interactsWith", opts = list())

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

Value

matrix representing species interactions between source and target taxa

See Also

Other interactions: get_child_taxa; get_interaction_table; get_interaction_types; get_interactions_by_taxa; get_interactions; get_predators_of; get_prey_of

Examples

Run this code
## Not run: 
# get_interaction_matrix("Homo sapiens", "Mammalia", "interactsWith")
# ## End(Not run)

Run the code above in your browser using DataLab