Skip to contents

Applies a standard naming convention to raw VIGIAR data. Uses the internal variable dictionary when available.

Usage

vigiar_padronizar_colunas(dados, tabela)

Arguments

dados

A data frame.

tabela

Table name (used to look up the dictionary).

Value

A data frame with standardised column names.

Examples

dados <- data.frame(muni = 330455L, UF = "RJ", Media_pm25 = 12.3)
names(vigiar_padronizar_colunas(dados, "df_anual"))
#> [1] "cod_municipio"    "sigla_uf"         "pm25_media_anual"