is_uprn: Function to check is either a numeric or character variable...

Description Usage Arguments Value Examples

View source: R/is_uprn.R

Description

Function to check is either a numeric or character variable is in the format of a valid UPRN, and not not contain any letters or punctuation. This function will faill if a numeric with a decimal followed by solely zeros is entered.

Usage

1
is_uprn(uprns, allow_scientific = TRUE)

Arguments

string

to be checked.

Value

TRUE or FALSE.

Examples

1
2
3
4
is_uprn(1)
is_uprn(999999999999)
is_uprn("1")
is_uprn("999999999999")

SamA-DS/Rbduk documentation built on May 1, 2021, 5:29 a.m.