validate_rut: Validate RUT

Description Usage Arguments Value Examples

View source: R/validate.R

Description

Validates a Chilean RUT. The input must be a character string in one of the following formats: RUT with dots and hyphen (Ex. '12.345.678-9'), RUT without dots but with hyphen (Ex. '12345678-9') or RUT without dots and hyphen (Ex. '123456789')

Usage

1

Arguments

rut

Character str

Value

Returs TRUE if RUT is valid, else it will return FALSE

Examples

1
2
3
validate_rut('123456789')
validate_rut('12345678-9')
validate_rut('12.345.678-9')

Example output

[1] FALSE
[1] FALSE
[1] FALSE

rutifier documentation built on March 2, 2020, 5:09 p.m.