R/is.string.R

#' Test if an object is a string
#' 
#' A string is a one element character vector
#' 
#' @param x
#' 
#' Equivalent to: \cr
#'   \code{ is.character(x) && length(x) == 1 }
   
is.string <- function(x) is.character(x) && length(x) == 1 

Try the searchable package in your browser

Any scripts or data that you put into this service are public.

searchable documentation built on May 1, 2019, 9:45 p.m.