View source: R/str2str_functions.R
is.empty | R Documentation |
is.empty
returns whether elements of a character vector are empty (i.e., "").
is.empty(x, trim = FALSE)
x |
character vector. |
trim |
logical vector with a single element specifying whether white spaces
should be trimmed from the character vector. See |
TRUE for every element of 'x' that is empty (i.e., "") and FALSE otherwise. The structure is a logical vector with length = length('x') and names = names('x').
v <- c("1", " ", "")
is.empty(v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.