Skip to contents

[Stable]

This function makes cpf strings consistent across different patterns

Usage

fix_cpf(.cpf)

Arguments

.cpf

cpf string

Examples

  fake_cpf <- c(
   "111,232-123.23",
   "11122233323",
   "234..222--454,,00"
 )
 fix_cpf(fake_cpf)
#> [1] "111.232.123-23" "111.222.333-23" "234.222.454-00"