igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Getting components counts for many network files


From: Tamas Nepusz
Subject: Re: [igraph] Getting components counts for many network files
Date: Tue, 4 Aug 2015 23:31:39 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

> ------------------------------------------------
> library(igraph)
> get.pc <- function(file){
> g<-read.graph("file", format="ncol")
[...]
"file" is in quotes above so R is looking for a file named "file", not the file
that you pass in the variable named "file". You probably wanted to type:

g <- read.graph(file, format="ncol")

-- 
T.



reply via email to

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