File: is_blank.Rd

package info (click to toggle)
r-cran-xfun 0.37%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 792 kB
  • sloc: ansic: 242; sh: 22; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/string.R
\name{is_blank}
\alias{is_blank}
\title{Test if a character vector consists of blank strings}
\usage{
is_blank(x)
}
\arguments{
\item{x}{A character vector.}
}
\value{
\code{TRUE} if the input is blank, or \code{FALSE} otherwise.
}
\description{
Return \code{TRUE} if all elements of a character vector are blank (white
spaces or empty strings).
}
\examples{
xfun::is_blank("")
xfun::is_blank("abc")
xfun::is_blank(c("", "  ", "\n\t"))
xfun::is_blank(c("", " ", "abc"))
}