Skip to contents

[Stable]

This function makes cnpj strings consistent across different patterns

Usage

fix_cnpj(.cnpj)

Arguments

.cnpj

cnpj string

Examples

  fake_cnpj <- c(
   "01223446000126",
   "0,3.5;666123,5--2-3.12"
 )
 fix_cnpj(fake_cnpj)
#> [1] "01.223.446/0001-26" "03.566.612/3523-12"