Learn R Programming

numbersBR (version 0.0.2)

CNPJ: Functions to create brazilian numbers objects

Description

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

Usage

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

Run this code
# NOT RUN {
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))
# }

Run the code above in your browser using DataLab