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-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to