Description Usage Arguments Examples
Transform DATASUS data according to a dictionary
1 2 |
data |
a data frame to transform |
dict |
a dictionary to use for the transformation |
keep |
an optional vector of column names to keep (others will be omitted) |
language |
should the resulting transformed data be in English or Portuguese? Currently not implemented. |
quiet |
logical - should messages be suppressed? |
1 2 3 4 5 6 7 8 9 10 | d <- transform_data(sinasc_example, subset(cdcs_dict, db == "SINASC"))
## Not run:
fin <- "ftp://ftp.datasus.gov.br/dissemin/publicos/SINASC/NOV/DNRES/DNRO2013.DBC"
fout <- tempfile(fileext = ".DBC")
download.file(fin, destfile = fout)
d <- read_datasus(fout)
d <- transform_data(d, subset(cdcs_dict, db == "SINASC"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.