Title: | Extract data from SpiGes XML files |
---|---|
Description: | Provide functions to extract data from SpiGes XML files. |
Authors: | Felix Luginbuhl [aut, cre] , Hedwig Prey [aut], Fachstelle für Statistik Kanton St.Gallen [cph, fnd] |
Maintainer: | Felix Luginbuhl <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.0.6 |
Built: | 2024-11-16 06:06:04 UTC |
Source: | https://github.com/SwissStatsR/SpiGesXML |
Return a tibble/dataframe of a SpiGes node name. By default, all variables are returned. Variables can be selected using the 'variables' argument.
spiges_get_df(x, node, variables = NULL, schema_xsd = "latest", force = FALSE)
spiges_get_df(x, node, variables = NULL, schema_xsd = "latest", force = FALSE)
x |
A string, a connection, or a raw vector. See |
node |
Name of the node as string, see |
variables |
Name of the variables, by default returns all variables |
schema_xsd |
URL of an XSD schema version, by default "latest" version. |
force |
default FALSE. If TRUE, returns data even if validation error. |
data.frame/tibble
Return main and children node names of an SpiGes XML. The node names "Unternehmen", "Standort", "Fall", "Kantonsdaten" are removed as the function spiges_get_df() doesn't provide support to extract their related data.
spiges_get_name_nodes(x)
spiges_get_name_nodes(x)
x |
A string, a connection, or a raw vector. See |
vector of node names
Return a list containing the list of the variables names for each SpiGes XML. The names of the list are equivalent of the node names returned by
spiges_get_name_variables(schema_xsd)
spiges_get_name_variables(schema_xsd)
schema_xsd |
XSD schema file |
Source file: https://www.bfs.admin.ch/bfs/de/home/statistiken/gesundheit/gesundheitswesen/projekt-spiges.assetdetail.28127962.html
a list of variable names