I am trying to convert a .XML file to excel using the R XML library. However, I am getting an error that I can not decode.
kindly assist to decode the error. Yes, I am an amateur in programming. But here is my code and the error
> library(XML)
> mydata <- xmlParse("2021-11-29-alp_gene_3.xml")
> mydata1 <- xmlToList(mydata)
> mydata3 <- do.call(rbind.data.frame, mydata1)
Error in (
function (...,
deparse.level = 1,
make.row.names = TRUE,
stringsAsFactors = FALSE, :
invalid list argument: all variables should have the same length