View source: R/datalow_utils.r
removeEmpty | R Documentation |
removeEmpty removes empty strings from a vector of strings. Such spaces often created by spurious commas at the end of lines. It also removes strings made up only of spaces and removes spaces from inside of inidivdual chunks of text.
removeEmpty(invect)
invect |
a vector of input strings, possibly containing empty strings |
a possibly NULL vector of strings
x <- c("1","","2",""," ","3"," ","4","","a string","end")
x
length(x)
length(removeEmpty(x))
removeEmpty(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.