agdb.checkid: Check an id

Description Usage Arguments Details Value

View source: R/acdatabase_dbtest.R

Description

Checks if a proposed id follows the formatting rules.

Usage

1
agdb.checkid(id, null_permitted = F)

Arguments

id

char: A proposed id

null_permitted

bool: whether NULL should return T or F

Details

The following rules are currently checked:

  1. id is be character type

  2. id has length 6

  3. all characters are capital letters or numerals 0:9

Value

character


acorg/acutilsLite documentation built on Feb. 19, 2021, 4:56 p.m.