[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] using variables to call a graph
From: |
Luca Rossi |
Subject: |
[igraph] using variables to call a graph |
Date: |
Fri, 16 Jan 2015 15:14:48 +0100 |
Hello,
I’m trying to perform a very simple task but for some reason I can’t understand
what I’m doing wrong.
So forgive me if this is very simple.
I need to perform the same analysis on a rather large set of networks but.
I’ve got all the names of the networks in a vector so I was hoping to do this
through a simple loop:
for (i in 1:length(nets))
{
g <- nets[i]
V(g)$ownhiv[is.na(V(g)$ownhiv)] <- 0
[…]
}
But I’ve got an error since: Error in V(`*tmp*`) : Not a graph object
What am I doing wrong?
Thanks a lot
Luca
- [igraph] using variables to call a graph,
Luca Rossi <=