Something weird must be going on in your s641_social object. Can you just simply check that the vertex names look OK with 'V(s641_social)$name'?
If they look good, then can you send me the s641_social object in private? (Or part of it, assuming a part is enough to reproduce the problem.) Best, Gabor On Sat, May 12, 2012 at 8:07 PM, bmccowan <bjmcco...@ucdavis.edu> wrote: > I am using the code below to output some network measures: > > central_social <- data.frame(V(s641_social)$name, indegree_social, > outdegree_social, incloseness_social, outcloseness_social, > betweenness_social, eigen_social) > > and I get the following error: > > > Error in Re(z) : non-numeric argument to function > > I know this has to do with V but I cannot figure out what is wrong. > s641-social is a graph object and the vertices do have a name attribute. > > What can I do to fix? > > Thanks > > -- > View this message in context: > http://r.789695.n4.nabble.com/Help-with-V-function-in-igraph-tp4629767.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gabor Csardi <csa...@rmki.kfki.hu> MTA KFKI RMKI ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.