2022-09-22 14:20:46 +02:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/cpr_tools.R
|
|
|
|
\name{cpr_check}
|
|
|
|
\alias{cpr_check}
|
|
|
|
\title{CPR check}
|
|
|
|
\usage{
|
|
|
|
cpr_check(cpr)
|
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{cpr}{cpr-numbers as ddmmyy\link{-.}xxxx or ddmmyyxxxx. Also mixed formatting. Vector or data frame column.}
|
|
|
|
}
|
|
|
|
\value{
|
2022-09-22 19:53:15 +02:00
|
|
|
Logical vector of cpr validity
|
2022-09-22 14:20:46 +02:00
|
|
|
}
|
|
|
|
\description{
|
|
|
|
Checking validity of cpr number. Vectorised.
|
|
|
|
}
|
|
|
|
\examples{
|
|
|
|
fsd<-c("2310450637", "010115-4000", "0101896000","010189-3000","300450-1030","010150-4021")
|
|
|
|
cpr_check(fsd)
|
|
|
|
all(cpr_check(fsd))
|
|
|
|
}
|
|
|
|
\keyword{cpr}
|