get_interactions: Get interactions

View source: R/helpers.r

get_interactionsR Documentation

Get interactions

Description

Helper function which constructs two vectors of species interactions (e.g. plant - pollinator) for two network interactions provided as data frames.

Usage

get_interactions(net1, net2)

Arguments

net1, net2

Two data frames of interactions, for example constructed with reshape_net. Each data frame must have only two columns/variables, e.g. first column for plant names, second column for insect names.

Value

Returns a list of two character vectors.

Examples


library(bootdissim)
library(bipartite)

net1 <- reshape_net(vazarr, seed = 1)
net2 <- reshape_net(vazcer, seed = 1)

vect <- get_interactions(net1, net2)


valentinitnelav/bootdissim documentation built on Oct. 11, 2022, 12:34 a.m.