[R] Problem in creating XML

arunkumar1111 akpbond007 at gmail.com
Tue Oct 25 10:11:22 CEST 2011


I've a problem in creating an XML

My code
node= newXMLNode("data")
new<-newXMLNode("new",parent=node)
child<-newXMLNode("Plot",parent=new)

My dataframe Plot looks like below

                  x     y
                  0 123812.31
                  1 120166.77
                   2 111115.83
                   3 102809.13
                   4  84438.97
                   5  84588.40

for( i in nrows(Plot))
{
  
  newXMLNode(child,attrs = c(x = as.character(i),y =
as.character(Plot$y[j])),parent=newl)
 
}

Butg i'm getting error  "Error in strsplit(name, ":") : non-character
argument"

Please help me

--
View this message in context: http://r.789695.n4.nabble.com/Problem-in-creating-XML-tp3935980p3935980.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list