validate_gridref: Validate a grid reference

View source: R/gridref.R

validate_gridrefR Documentation

Validate a grid reference

Description

Internal validator function to check that a grid reference is valid before converting to a gridref class. Returns an error if the grid reference is invalid.

Usage

validate_gridref(grid_reference)

Arguments

grid_reference

A Great British or Irish grid reference character string.

Details

Taken from archived rnbn package.

Value

A validated grid reference character string.

Author(s)

Stuart Ball.


gcfrench/store documentation built on May 17, 2024, 5:52 p.m.