R/validate_values.R
is_section_value.Rd
The 17 valid PCS Section values are "B-D", "F-H", "X", and "0-9".
is_section_value(section_value)
<chr> string
<chr>
<lgl> TRUE if valid, otherwise FALSE
<lgl>
TRUE
FALSE
Other PCS value validators: is_system_value()
is_system_value()
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.