Learn R Programming

numbersBR (version 0.0.2)

==.CNPJ: Compare numbers among themselves, with numeric and character objects.

Description

Compares the brazilian numbers among themselves, with numeric and character objects.

Usage

# S3 method for CNPJ
==(e1, e2)

# S3 method for CNPJ !=(e1, e2)

# S3 method for CPF ==(e1, e2)

# S3 method for CPF !=(e1, e2)

# S3 method for RENAVAN ==(e1, e2)

# S3 method for RENAVAN !=(e1, e2)

Arguments

e1

the identification number class.

e2

the object to be compared with, can be of the same type of e1, a numeric or character vector

Value

A logical vector indicating that the given objects represent the same number.

Examples

Run this code
# NOT RUN {
x <- CNPJ(13515463000138)
x == '13515463000138'
x <- CPF(68194359406)
x != "681.943.594-06"
x <- RENAVAN(68194359406)
x == "68194359406"
# }

Run the code above in your browser using DataLab