Skip to contents

Reads official INEC labor-market tabulations distributed as CSV files or ZIP archives and returns a tidy long-format table. This helper is intended for validation and audit workflows against enemdu_kpi_employment() outputs.

Usage

enemdu_read_official_labor_tabulados(
  path,
  survey_type = c("mensual", "trimestral", "anual"),
  include_unmapped = TRUE,
  encoding = "Latin1"
)

Arguments

path

Path to an official CSV file, a directory containing official CSV files, or a ZIP archive containing official CSV files.

survey_type

ENEMDU survey type. One of "mensual", "trimestral" or "anual".

include_unmapped

Logical. If TRUE, keeps official rows that do not yet map to an implemented enemduR labor indicator.

encoding

File encoding used by official CSV files. Defaults to "Latin1".

Value

A tibble in long format with official values and mapped indicator ids when available.