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"
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"