[...]
> compo[[ which.max(sapply(compo, vcount)) ]] 

That's better command for obtaining Largest Component

Sometimes, I get this error while reading pajek file. Does anybody know what
this error message means ?

g <- read.graph ("F://data/pfu_raw.net", "pajek")
Error in read.graph.pajek(file, ...) : 
  At rinterface.c:258 : Invalid attribute length, Invalid value
 
It happens for only some files !

Thanks
chakri
-- 
View this message in context: 
http://r.789695.n4.nabble.com/send-out-put-to-file-in-R-tp2288515p2298497.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.

Reply via email to