Learn R Programming

healthbR (version 0.2.0)

pns_sidra_tables: List PNS SIDRA tables

Description

Returns a catalog of available SIDRA tables for the PNS, organized by health theme.

Usage

pns_sidra_tables(theme = NULL, year = NULL)

Value

A tibble with columns: table_code, table_name, theme, theme_label, years, territorial_levels.

Arguments

theme

Character. Filter by theme. NULL returns all themes. Available themes: "chronic_diseases", "lifestyle", "health_services", "health_perception", "womens_health", "accidents_violence", "oral_health", "anthropometry", "health_insurance", "disability", "elderly", "tobacco", "alcohol", "physical_activity", "nutrition", "medications", "mental_health", "work_health", "child_health".

year

Numeric. Filter tables that contain data for this year. NULL returns tables for all years.

Examples

Run this code
# list all tables
pns_sidra_tables()

# filter by theme
pns_sidra_tables(theme = "chronic_diseases")

# tables with 2013 data
pns_sidra_tables(year = 2013)

Run the code above in your browser using DataLab