SingleString: Single String

Description Usage Arguments Value Examples

View source: R/basic_functions.R

Description

determine whether input is a single string

Usage

1

Arguments

x

string

Value

true or false

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 Jan. 11, 2020, 9:29 a.m.