Skip to contents

Generate Random HCPCS Codes Vector

Usage

random_hcpcs(n = 10, lng = c(1:5))

Arguments

n

<integer> number of codes; default is 10

lng

<integer> vector of lengths; default is c(1:5)

Value

<character> vector

Examples

random_hcpcs()
#>  [1] "C"     "Q"     "V"     "4"     "1"     "G9"    "C9"    "G2"    "G8"   
#> [10] "G0"    "33"    "J2"    "42"    "L5"    "E1"    "G01"   "S00"   "G21"  
#> [19] "G96"   "009"   "J18"   "932"   "G96"   "920"   "434"   "3820"  "5905" 
#> [28] "J074"  "A489"  "9112"  "5410"  "L578"  "G029"  "2092"  "8355"  "E2604"
#> [37] "E1296" "24152" "J0180" "M1230" "Q4211" "S5160" "45540" "J9185" "K0857"

random_hcpcs(50, 3)
#>  [1] "812" "418" "875" "550" "876" "G01" "G05" "922" "270" "654" "519" "054"
#> [13] "051" "959" "992" "925" "J73" "256" "G97" "019" "G87" "812" "S95" "276"
#> [25] "375" "G04" "737" "V22" "J90" "210" "271" "503" "958" "A70" "969" "C26"
#> [37] "861" "352" "150" "K10" "281" "E01" "202" "993" "M10" "585" "222" "776"
#> [49] "494" "C52"