Skip to contents

Checks that ano is between 2000 and the current year, and mes is between 1 and 12.

Usage

vigiar_validar_datas(dados)

Arguments

dados

A data frame.

Value

The data frame (unchanged), with warnings on invalid values.

Examples

vigiar_validar_datas(data.frame(ano = 2022L, mes = 6L))
#>    ano mes
#> 1 2022   6