==.CNPJ {numbersBR} | R Documentation |
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 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 |
Value
A logical vector indicating that the given objects represent the same number.
Examples
x <- CNPJ(13515463000138)
x == '13515463000138'
x <- CPF(68194359406)
x != "681.943.594-06"
x <- RENAVAN(68194359406)
x == "68194359406"
[Package numbersBR version 0.0.2 Index]