R/predicate.R

Defines functions pstring pscalar

pscalar <- function(x) {
  length(x) == 1L
}

pstring <- function(x) {
  is.character(x) && length(x) == 1L
}
rstudio/renv documentation built on July 8, 2024, 5:48 a.m.