Hi Claudia,
Thanks so much! The path trick worked, and I'm trying alternate data import command.
Dave
On Aug 5, 2010, at 11:38 PM, Claudia Muller-Birn wrote: Hi Dave,
Well, it might be that I had the same problem. Did you check your file path? Try the complete path starting from /Users/USERNAME/Documents/...
This is especially important if you call R from outside the environment (which was my case).
Another solution was proposed on this list a little bit ago. What kind of edge list format do you use?
You can import your data by using the following commands as well:
el <- matrix(scan(path), byrow=TRUE, ncol=3) \\ as you can see, I used the ncol format that has the format "node node weight" g <- graph.data.frame(as.data.frame(el))
Hope this helps!
Claudia On Aug 5, 2010, at 10:56 PM, David Huffaker wrote: Hi there,
I'm getting an error when trying to load an edgelist into igraph. At first I thought it might be my data, but when I tried with a sample edgelist in a tutorial, I get the same error:
> d <- read.graph("sample_edgelist.csv", format = "edgelist")
Error in read.graph.edgelist(file, ...) : At rinterface.c:3705 : Cannot read edgelist, File operation error
Any ideas what I am doing wrong? I'm using Mac and R 2.11.1
Thanks!
Dave _______________________________________________ igraph-help mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/igraph-help
_______________________________________________ igraph-help mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/igraph-help
|