search for: convert_from_xml

Displaying 2 results from an estimated 2 matches for "convert_from_xml".

2018 Jan 17
2
Help making first dataset R package
...umentation. All code can be found at: https://github.com/MartinMSPedersen/folkeafstemninger When I check the package I get four warnings. I will list all warnings in this email because they migth be connected. 1. * checking if this is a source package ... WARNING Subdirectory ?src? contains: convert_from_xml.R These are unlikely file names for src files. 2. * checking whether package ?folkeafstemninger? can be installed ... WARNING Found the following significant warnings: Warning: no source files found See ?/home/mm/gits/folkeafstemninger.Rcheck/00install.out? for details. 3. * checking package su...
2017 Nov 30
2
Help avoiding setting column type two times
...placed the xml-files which I got from "Statistics Denmark" I have also put these xml-files on my website and they can be download freely from http://20dage.dk/R/referendum-2009/raw.tar.gz The code is below but I have also put the code at this place: http://20dage.dk/R/referendum-2009/convert_from_xml.R Best Regards Martin M. S. Pedersen ------- library(xml2) convert_one_file <- function(url) { x <- read_xml(url) Sted <- xml_find_first(x, ".//Sted") StedType <- xml_attr(Sted, "Type") StedTekst <- xml_text(Sted) Parti <- xml_find_all(...