Skip to content
Prev 267426 / 398502 Next

Is a string all blanks?

On Aug 2, 2011, at 8:07 PM, John Sorkin wrote:

            
> bvec <- c(OneBlank, TwoBlanks ,ThreeBlanks ,NoBlanks)
 > grepl(" +", bvec)
[1]  TRUE  TRUE  TRUE FALSE