Re: [R] send out put to file in R

2010-07-22 Thread chakri_amateur
[...] > 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, ..

Re: [R] send out put to file in R

2010-07-16 Thread Gábor Csárdi
On Thu, Jul 15, 2010 at 6:38 PM, chakri_amateur wrote: [...] > I want to extract the largest connected component (alias sub-graph) of the > network. My input network is a large network of >1000 vertices and >15000 > arcs. From this, I want to take out only the largest cluster. > >> If you decompos

Re: [R] send out put to file in R

2010-07-15 Thread chakri_amateur
Dear Gabor Csardi, Thanks. The problem is now resolved. > No wonder, writing computer programs is not just typing in random words > and let the computer figure > out what you are trying to do. At least not yet. Apart from typo errors like "wri" before "write..." and "lecompose" instead of "d

Re: [R] send out put to file in R

2010-07-14 Thread Gábor Csárdi
On Thu, Jul 15, 2010 at 7:24 AM, chakri_amateur wrote: [...] > wri write.graph ("F://new", "pajek") <-      decompose.graph(g,  mode="weak", > max.comps=NA, > min.vertices= 20) > > > But even that doesn't work No wonder, writing computer programs is not just typing in random words and let the co

Re: [R] send out put to file in R

2010-07-14 Thread chakri_amateur
Dear Peter Ehlers, Thanks. In decompose help page of 'R' It's clearly mentioned that the output of decompose command is a separate graph for each component . It is true that, Variable in which  I stored my output is not a graph object. I tried the following command also - To directly save

Re: [R] send out put to file in R

2010-07-14 Thread Peter Ehlers
On 2010-07-14 4:04, chakri_amateur wrote: Hi I am using igraph package in R. My goal is to read a network (in "pajek" format) and decompose the network into components. In addition, I am also interested in sending this output to to a file. I am having problem in while writing to a file! my

[R] send out put to file in R

2010-07-14 Thread chakri_amateur
Hi I am using igraph package in R. My goal is to read a network (in "pajek" format) and decompose the network into components. In addition, I am also interested in sending this output to to a file. I am having problem in while writing to a file! my code looks like this g <- read.graph ("F://t