Re: [R] Parsing XML to tree.

2013-05-08 Thread avinash sahu
else. thanks avi On Wed, May 8, 2013 at 12:37 PM, Ben Tupper wrote: > Hi, > > On May 8, 2013, at 3:43 AM, avinash sahu wrote: > > > Hi All, > > > > I am struggling to parse a XML file that describes a tree. The XML file > is > > present here: >

[R] Parsing XML to tree.

2013-05-08 Thread avinash sahu
Hi All, I am struggling to parse a XML file that describes a tree. The XML file is present here: http://www.emouseatlas.org/emap/ema/theiler_stages/StageDefinition/Stage_xml/TS23.xml I want is simple list of parents id of each component. The output will look like Component = [7148 7149 7150 7

[R] Merging big data.frame

2013-04-16 Thread avinash sahu
Hi all, I am trying to merge 2 big data.frame. The problem is merge is memory intensive so R is going out of memory error: cannot allocate vector of size 360.1 Mb. To overcome this, I am exploring option of using data.table package. But its not helping in term of memory as merge in data.table is f

[R] big edge list to adjacency matrix

2013-03-12 Thread avinash sahu
I have huge list of edges with weights. a1 b1 w1 a2 b2 w2 a3 b3 w3 a1 b1 w4 a3 b1 w5 I have to convert it into 2 dim matrix b1b2 b3 a1 max(w1,w4) 0 0 a20w2 0 a3w5 0 w3 if edges repeated take the maxim