igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] removing NA's from graph object


From: Tamás Nepusz
Subject: Re: [igraph] removing NA's from graph object
Date: Wed, 25 Jul 2012 15:33:54 +0200

> Can someone suggest how I can remove the NA's from the g to be able to 
> calculate the assortaitivity?

g <- delete.vertices(g, which(is.na(V(g)$vaccination))) if you are using igraph 
0.6. (You have to subtract 1 from the results of which() if you are using 
igraph 0.5.x or earlier).

Best,
T.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]