| datasus_padronizar | R Documentation |
Renames curated fields and converts documented dates, identifiers, numeric measures and logical indicators. Unrecognized columns and coded category values are preserved exactly as published.
datasus_padronizar(dados, sistema, tipo = NULL)
dados |
A data frame containing raw DATASUS records. |
sistema |
System accepted by [datasus_dicionario()]. |
tipo |
Optional raw file type. 'NULL' selects the default type. |
The input data frame with curated fields renamed and typed. Provenance is preserved and the applied dictionary is attached as attribute '"datasus_dicionario"'.
example <- data.frame(
MUNIC_RES = "120040",
DT_INTER = "20240110",
DIAG_PRINC = "J18"
)
datasus_padronizar(example, "sih")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.