File: is.booltype.Rd

package info (click to toggle)
r-cran-bit 4.6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,000 kB
  • sloc: ansic: 5,145; sh: 13; makefile: 6
file content (55 lines) | stat: -rw-r--r-- 1,141 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bit.R
\name{is.booltype}
\alias{is.booltype}
\alias{is.bit}
\alias{is.bitwhich}
\alias{is.which}
\alias{is.hi}
\alias{is.ri}
\title{Testing for boolean types}
\usage{
is.booltype(x)

is.bit(x)

is.bitwhich(x)

is.which(x)

is.hi(x)

is.ri(x)
}
\arguments{
\item{x}{an R object}
}
\value{
logical scalar
}
\description{
All \code{\link[=booltypes]{booltypes()}} including  \code{\link[=logical]{logical()}} except 'nobool' types are considered
'is.booltype'.
}
\section{Functions}{
\itemize{
\item \code{is.bit()}: tests for \code{\link[=bit]{bit()}}

\item \code{is.bitwhich()}: tests for \code{\link[=bitwhich]{bitwhich()}}

\item \code{is.which()}: tests for \code{\link[=as.which]{which()}}

\item \code{is.hi()}: tests for \code{\link[ff:hi]{hi}}

\item \code{is.ri()}: tests for \code{\link[=ri]{ri()}}

}}
\examples{
sapply(
  list(double(), integer(), logical(), bit(), bitwhich(), as.which(), ri(1, 2, 3)),
  is.booltype
)
}
\seealso{
\code{\link[=booltypes]{booltypes()}}, \code{\link[=booltype]{booltype()}}, \code{\link[=as.booltype]{as.booltype()}}
}