is_number_valid: Checks validity of an NHS number

Description Usage Arguments Examples

View source: R/is_number_valid.R

Description

NHS numbers are 10 digit numbers where the 10th digit is a checksum. This function validates the checksums of the supplied NHS numbers.

Usage

1
is_number_valid(nhs_number, warn = TRUE)

Arguments

nhs_number

A 10 digit NHS number to validate

warn

Boolean that controls display of warning messages

Examples

1
2
is_valid(1234567881)
is_valid(1234567890, warn = FALSE)

sellorm/nhsnumber documentation built on Nov. 5, 2019, 8:49 a.m.