search for: addchildren

Displaying 7 results from an estimated 7 matches for "addchildren".

2018 Mar 21
2
how to add a child to a child in XML
...XML) node1 <- c("val1","val2","val3") names(node1) <- c("att1","att2","att3") root <- xmlNode("root", attrs=node1) node2 <- LETTERS[1:3] names(node2) <- paste("name",1:3,sep="") root <- addChildren(root,xmlNode("child1",attrs=node2)) node3 <- letters[1:3] names(node3) <- paste("name",4:6,sep="") root <- addChildren(root$child1,xmlNode("child2",attrs=node3)) Error in UseMethod("addChildren") : no applicable method for 'addChi...
2018 Mar 21
0
how to add a child to a child in XML
...ot;,"val3") > > names(node1) <- c("att1","att2","att3") > > root <- xmlNode("root", attrs=node1) > > node2 <- LETTERS[1:3] > > names(node2) <- paste("name",1:3,sep="") > > root <- addChildren(root,xmlNode("child1",attrs=node2)) > > node3 <- letters[1:3] > > names(node3) <- paste("name",4:6,sep="") > > root <- addChildren(root$child1,xmlNode("child2",attrs=node3)) > > > > Error in UseMethod("addChil...
2018 Mar 22
2
how to add a child to a child in XML
...XML) node1 <- c("val1","val2","val3") names(node1) <- c("att1","att2","att3") root <- xmlNode("root", attrs=node1) node2 <- LETTERS[1:3] names(node2) <- paste("name",1:3,sep="") root <- addChildren(root,xmlNode("child1",attrs=node2)) node3 <- letters[1:3] names(node3) <- paste("name",4:6,sep="") root <- addChildren(root$child1,xmlNode("child2",attrs=node3)) Error in UseMethod("addChildren") : no applicable method for 'addChi...
2018 Mar 22
0
how to add a child to a child in XML
...ot;,"val3") > > names(node1) <- c("att1","att2","att3") > > root <- xmlNode("root", attrs=node1) > > node2 <- LETTERS[1:3] > > names(node2) <- paste("name",1:3,sep="") > > root <- addChildren(root,xmlNode("child1",attrs=node2)) > > node3 <- letters[1:3] > > names(node3) <- paste("name",4:6,sep="") > > root <- addChildren(root$child1,xmlNode("child2",attrs=node3)) > > > > Error in UseMethod("addChil...
2018 Mar 22
1
how to add a child to a child in XML
...XML) node1 <- c("val1","val2","val3") names(node1) <- c("att1","att2","att3") root <- xmlNode("root", attrs=node1) node2 <- LETTERS[1:3] names(node2) <- paste("name",1:3,sep="") root <- addChildren(root,xmlNode("child1",attrs=node2)) node3 <- letters[1:3] names(node3) <- paste("name",4:6,sep="") root <- addChildren(root$child1,xmlNode("child2",attrs=node3)) Error in UseMethod("addChildren") : no applicable method for 'addChi...
2009 Jun 25
3
exportation of xml file from R
...8 <Factor>Residuals</Factor> <Sum Sq>214.73234</Sum Sq> <Df>1152</Df> <F value>NA</F value> <Pr(>F)>NA</Pr(>F)> </line> </anova:2> </anova> for data I basically used the function xmlNode,addChildren,xmlchildren. I don't know if it's sufficient to recognise a xml file So thanks for your help! Regards, Guillaume [[alternative HTML version deleted]]
2012 Feb 10
3
Creating XML document extremely slow
...rkers> </MarkerSet> There are about 500 very similar marker tags. Here's the part of the code that is particularly slow (x is a character, y is an integer, both have a length of about 500): markernode <- xmlNode('Markers') for(i in 1:length(t)){ markernode <- addChildren(markernode, xmlNode('Marker', xmlNode('Type', 'Stimulus'), xmlNode('Description', x[i]), xmlNode('Position', y[i]), xmlNode('Points', 1), xmlNode('Channel', 'All'))) } Looks pretty harmless to...