cpr_check {stRoke} | R Documentation |
CPR check
Description
Checking validity of cpr number. Vectorised.
Usage
cpr_check(cpr)
Arguments
cpr |
cpr-numbers as ddmmyy"-."xxxx or ddmmyyxxxx. Also mixed formatting. Vector or data frame column. |
Value
Logical vector of cpr validity
Examples
fsd<-c("2310450637", "010190-2000", "010115-4000",
"300450-1030","010150-4021")
cpr_check("2310450637")
cpr_check(fsd)
all(cpr_check(fsd))
[Package stRoke version 23.9.1 Index]