| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/string.R |
| 3 |
\name{is_blank} |
| 4 |
\alias{is_blank} |
| 5 |
\title{Test if a character vector consists of blank strings} |
| 6 |
\usage{ |
| 7 |
is_blank(x) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{A character vector.} |
| 11 |
} |
| 12 |
\value{ |
| 13 |
\code{TRUE} for blank elements, or \code{FALSE} otherwise. |
| 14 |
} |
| 15 |
\description{ |
| 16 |
Return a logical vector indicating if elements of a character vector are |
| 17 |
blank (white spaces or empty strings). |
| 18 |
} |
| 19 |
\examples{ |
| 20 |
xfun::is_blank("") |
| 21 |
xfun::is_blank("abc") |
| 22 |
xfun::is_blank(c("", " ", "\n\t")) |
| 23 |
xfun::is_blank(c("", " ", "abc")) |
| 24 |
} |