SingleString: Single String

View source: R/basic_functions.R

SingleStringR Documentation

Single String

Description

determine whether input is a single string

Usage

SingleString(x)

Arguments

x

string

Value

true or false

Examples

A <- "This is a single string"
SingleString(A)
# [1] TRUE
is.character(A)
# [1] TRUE
B <- c("This is a vector" , "containing two strings")
SingleString(B)
# [1] FALSE
is.character(B)
# [1] TRUE

bfw documentation built on March 18, 2022, 6:19 p.m.