Builds of R2X available
Builds of R2X R packages are available from our download page
Builds of R2X R packages are available from our download page
For deep learning and training of neural networks we have developed the UOpt library. This solver is specially well suited for the unconstrained optimization that is done in machine learning. See the section UOpt on this site for more information.
I just received news that AI & IT UG has been entered into the commercial register in Aachen, so the company founding is now complete from a legal point of view!
As our first contribution in the open source software of the world we would like to present R2X: A seamless XML to R bridge. Install from Github with
Then you can create XML from R with
For attributes you use, well, attributes, and for a XML document use
xml2::read_xml
.
The inverse function is x2r
, it uses XSLT to generate the R code for
the result. It converts strings to numbers when possible, and you can
give it XML markup or a document.
We think the possibilities are endless! Think about scraping data:
But watch out that $
will only ever return the first matching
child. So use other means:
Also the result of x2r
, that is, the lists that make up the XML, do
not look that pretty - you saw that already. This is just because R
lists the attributes after the value, which is of course the other way
round in XML. So we recommend the element
function. To see that
form, use deparse
The output, when embellished by hand looks like this:
This is just the structure
function inverted, but that makes it look
much more like XML already. R2X also converts numerical vectors to
lists of numbers and back. There is one catch: R2X ignores any text in
between elements, so your elements can either have element children or
text.
Some text is lost in translation, but all the elements and all the attributes will be there, as well as any single-child text nodes.
The github repository is at https::github.com/rainac/r2x.
Copyright © 2020 AI & IT UG (haftungsbeschränkt)