toGLVadjMat: From multiple interaction object 'mgraph'to GLV adjacency...

Description Usage Arguments Value See Also Examples

View source: R/readNetwork.r

Description

This functions takes a 'mgraph' object and convert it to a Generalized Lotka-Volterra adjacency matrix Position is important in fact the order is Competitive/Negative,Mutualistic/Positive,Trophic/Antagonistic

Usage

1
2
toGLVadjMat(mg, types = c("Competitive", "Mutualistic", "Trophic"),
  istrength = FALSE)

Arguments

mg

multiple interaction object, class 'mgraph'

types

vector of types that represent the layers

Value

an matrix with the signs of the interactions

See Also

readMultiplex()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Read a vector of files
#
## Not run: 

fpath <- system.file("extdata", package = "multiweb")
dn <- list.files(fpath,pattern = "^Kefi2015.*\\.txt$")
netData <- readMultiplex(dn,c("Competitive","Mutualistic","Trophic"),fpath,skipColum=2)
toGLVadjMat(netData)

## End(Not run)

lsaravia/EcoNetwork documentation built on Oct. 26, 2020, 11:09 p.m.