numbers: Functions to create brazilian numbers objects

Description Usage Arguments Value Examples

Description

The brazilian numbers used to identify individuals, vehicles, companies and any other things have their own S3 classes.

Usage

1
2
3
4
5
CNPJ(x)

CPF(x)

RENAVAN(x)

Arguments

x

the identification number as numeric or character

Value

A S3 class representing the brazilian number: CNPJ, CPF, RENAVAN

Examples

1
2
3
4
5
CNPJ(c(13515463000138, 3737211000108, 360305000104, 66670000100))
CNPJ(c("13.515.463/0001-38", "03.737.211/0001-08", "00.360.305/0001-04", "00.066.670/0001-00"))
CPF(c(68194359406, 1239157673, 52008275582))
CPF(c("681.943.594-06", "012.391.576-73", "520.082.755-82"))
RENAVAN(c(75320797785, 91671999129, 60885589380))

wilsonfreitas/numbersBR documentation built on May 4, 2019, 6:28 a.m.