Skip to contents

The 17 valid PCS Section values are "B-D", "F-H", "X", and "0-9".

Usage

is_section_value(section_value)

Arguments

section_value

<chr> string

Value

<lgl> TRUE if valid, otherwise FALSE

See also

Other PCS value validators: is_system_value()

Examples

x <- c("0", "3", "K")

is_section_value(x)
#> [1]  TRUE  TRUE FALSE

x[which(is_section_value(x))]
#> [1] "0" "3"

try(is_section_value("XX"))
#> Error in is_section_value("XX") : 
#>   `section_value` must be 1 character long.