View source: R/basic_functions.R
SingleString | R Documentation |
determine whether input is a single string
SingleString(x)
x |
string |
true or false
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.