comparison-methods: Compare numbers among themselves, with numeric and character...

Description Usage Arguments Value Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S3 method for class 'CNPJ'
e1 == e2

## S3 method for class 'CNPJ'
e1 != e2

## S3 method for class 'CPF'
e1 == e2

## S3 method for class 'CPF'
e1 != e2

## S3 method for class 'RENAVAN'
e1 == e2

## S3 method for class '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

1
2
3
4
5
6
x <- CNPJ(13515463000138)
x == '13515463000138'
x <- CPF(68194359406)
x != "681.943.594-06"
x <- RENAVAN(68194359406)
x == "68194359406"

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