powered by
Checking validity of cpr number. Vectorised.
cpr_check(cpr)
Logical vector of cpr validity
cpr-numbers as ddmmyy"-."xxxx or ddmmyyxxxx. Also mixed formatting. Vector or data frame column.
fsd<-c("2310450637", "010190-2000", "010115-4000", "300450-1030","010150-4021") cpr_check("2310450637") cpr_check(fsd) all(cpr_check(fsd))
Run the code above in your browser using DataLab