View source: R/datasus_catalog.R
| datasus_build_path | R Documentation |
Builds candidate FTP directories for a given source and file type. For SIH/SIA, the function selects historical vs. current trees by year/month. For SIM and SINASC, preliminary trees are included when requested.
datasus_build_path(
source,
file_type,
year = NULL,
month = NULL,
include_prelim = TRUE
)
source |
Source code (e.g. |
file_type |
File type code (e.g. |
year |
Integer vector of years. |
month |
Integer vector of months. |
include_prelim |
Logical. Include preliminary trees when available
(default |
A tibble with columns source, file_type, period, and path.
datasus_build_path(source = "SIHSUS", file_type = "RD", year = 2024, month = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.