toGLVadjMat | R Documentation |
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 If 'istrength' is TRUE the attribute weight is assumed as the strength of the interacion
toGLVadjMat( mg, types = c("Competitive", "Mutualistic", "Trophic"), istrength = FALSE )
mg |
multiple interaction object, class 'mgraph' |
types |
vector of types that represent the layers |
istrength |
edge weights |
an matrix with the signs of the interactions
readMultiplex()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.