stRoke/man/cpr_check.Rd

27 lines
559 B
Plaintext
Raw Permalink Normal View History

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{
2023-01-11 12:54:08 +01:00
\item{cpr}{cpr-numbers as ddmmyy"-."xxxx or ddmmyyxxxx.
Also mixed formatting. Vector or data frame column.}
2022-09-22 14:20:46 +02:00
}
\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{
2023-01-11 12:54:08 +01:00
fsd<-c("2310450637", "010190-2000", "010115-4000",
"300450-1030","010150-4021")
2022-09-26 13:59:05 +02:00
cpr_check("2310450637")
2022-09-22 14:20:46 +02:00
cpr_check(fsd)
all(cpr_check(fsd))
}
\keyword{cpr}