Hi everyone,
I am trying to import an "xsd" file in R but unfortunately I get an error.
library("XML")
library("methods")
result<- xmlParse(file= "C:/Users/LE/Data_Public_2017.xsd")
print(result)
rootnode<- xmlRoot(result)
rootsize<- xmlSize(rootnode)
print(rootsize)
print(rootnode)
data<- xmlToDataFrame("C:/Users/LE/Data_Public_2017.xsd")
the error that I get is
Error in [<-.data.frame
(*tmp*
, i, names(nodes[[i]]), value = c(attribute = "", :
doppelte Indizes für Spalten
10.
stop("duplicate subscripts for columns")
9.
[<-.data.frame
(*tmp*
, i, names(nodes[[i]]), value = c(attribute = "",
attribute = "", attribute = ""))
8.
[<-
(*tmp*
, i, names(nodes[[i]]), value = c(attribute = "",
attribute = "", attribute = ""))
7.
fromRaggedXML2DataFrame(nodes, varNames, c(length(nfields), length(varNames)),
colClasses, stringsAsFactors)
6.
xmlToDataFrame(doc, colClasses, homogeneous, collectNames, nodes = xmlChildren(xmlRoot(doc)),
stringsAsFactors)
5.
xmlToDataFrame(doc, colClasses, homogeneous, collectNames, nodes = xmlChildren(xmlRoot(doc)),
stringsAsFactors)
4.
xmlToDataFrame(xmlParse(doc), colClasses, homogeneous, collectNames,
stringsAsFactors = stringsAsFactors)
3.
xmlToDataFrame(xmlParse(doc), colClasses, homogeneous, collectNames,
stringsAsFactors = stringsAsFactors)
2.
xmlToDataFrame("C:/Users/LE/Data_Public_2017.xsd")
1.
xmlToDataFrame("C:/Users/LE/Data_Public_2017.xsd")
Anyone has an idea how could I import this file?
Many thanks in advace