validate_rut {rutifier} | R Documentation |
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')
validate_rut(rut)
rut |
Character str |
Returs TRUE if RUT is valid, else it will return FALSE
validate_rut('123456789') validate_rut('12345678-9') validate_rut('12.345.678-9')