I do not have any code to post, but just a question. There are several tools I am aware of to read SDMX files in R (an SDMX is an XML file for exchanging statistical data) like for instance
https://github.com/opensdmx/rsdmx
https://github.com/amattioc/SDMX
but does anyone know a way to export some data to an SDMX format for dissemination? Any suggestion is welcome!
This is not a ‘pure’ R solution, but the Python
sdmx1
package is fully usable through reticulate, and allows to programmatically generate SDMX objects and then serialize them as SDMX-ML (XML). For example:This gives output like:
For more information on authoring more complex messages using
sdmx1
, there is a page “HOWTO Generate SDMX-ML from Python objects” in the documentation.