removeEmpty {MQMF}R Documentation

removeEmpty removes empty strings from a vector of strings

Description

removeEmpty removes empty strings from a vector of strings. Such spaces can be created by spurious commas at the end of parsed lines. It also removes strings made up only of spaces and removes spaces from inside of individual chunks of text. This should be useful when reading in data from a custom csv file when parsing different formats

Usage

removeEmpty(invect)

Arguments

invect

a vector of input strings, possibly containing empty strings

Value

a possibly NULL vector of strings

Examples

x <- c("1","","2","","   ","3"," ","4","","a string","end")
x
length(x)
length(removeEmpty(x))
removeEmpty(x)

[Package MQMF version 0.1.5 Index]