trata_cpf: Correct Brazilian cpf document.

View source: R/tratadocumento.R

trata_cpfR Documentation

Correct Brazilian cpf document.

Description

trada_cpf The aim is transform the entrada to the pattern of Brazilian document cpf. It must have 11 numeric characters. When a dataset is read as a numeric, it lost the 0 character on the left. This function fix that lost and transform entrada to character.

Usage

trata_cpf(entrada)

Arguments

entrada

Character or numeric of the document that will be adjusted.

Value

Entrada adjusted.

Examples

   trata_cpf(52145795)

ipea/validaRA documentation built on Nov. 25, 2022, 10:11 p.m.