indicator_df | R Documentation |
Retrieve a dataframe with indicator data from its index, per region, in certain year period.
indicator_df(
indicator_index,
region = NULL,
subindicator = NULL,
years = NULL,
onlyMostRecent = FALSE,
url = "http://portal.saude.sp.gov.br/links/matriz",
timeout = 1
)
indicator_index |
Indicator index number, @seealso [tabnet_index()]. |
region |
String describing how should data be regionalized, or an integer indicating region index, @seealso [view_indicator()] |
subindicator |
Among the indicator, which subindicator should be used? Defaults to the last index. |
years |
Specific years desired or their indexes. Defaults to all years available. |
onlyMostRecent |
Boolean. If true, will retrieve only data from the most recent year informed. |
url |
TABNET url, defaults to Sao Paulo TABNET. |
timeout |
Time for connection to expire, in seconds. |
Regionalized data frame from selected indicator
[tabnet_df_retrieval()]
[tabnet_csv_retrieval()]
## Not run: indicator_df(21, region = "DRS", subindicator = 1, years = c(2007, 2008))
## Not run: indicator_df(4, region = "RRAS", onlyMostRecent = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.