Learn R Programming

rPraat (version 1.3.2-1)

isString: isString

Description

Returns TRUE / FALSE whether it is exactly 1 character string (character vector of length 1, non-missing)

Usage

isString(string)

Arguments

string

variable to be tested

Value

TRUE / FALSE

See Also

isInt, isNum, isLogical

Examples

Run this code
# NOT RUN {
isString("hello")
isString(2)
isString(c("hello", "world"))
isString(NA_character_)
# }

Run the code above in your browser using DataLab