File: as.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 (41 lines) | stat: -rw-r--r-- 1,014 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bit.R, R/generics.R
\name{as.booltype.default}
\alias{as.booltype.default}
\alias{as.booltype}
\title{Coerce to booltype (generic)}
\usage{
\method{as.booltype}{default}(x, booltype = "logical", ...)

as.booltype(x, booltype, ...)
}
\arguments{
\item{x}{object to coerce}

\item{booltype}{target \code{\link[=booltype]{booltype()}} given as integer or as character}

\item{...}{further arguments}
}
\value{
\code{x} coerced to \code{booltype}
}
\description{
Coerce to booltype (generic)
}
\section{Methods (by class)}{
\itemize{
\item \code{as.booltype(default)}: default method for as.booltype

}}
\examples{
as.booltype(0:1)
as.booltype(0:1, "logical")
as.booltype(0:1, "bit")
as.booltype(0:1, "bitwhich")
as.booltype(0:1, "which", maxindex=2)
as.booltype(0:1, "ri")
}
\seealso{
\code{\link{CoercionToStandard}}, \code{\link[=booltypes]{booltypes()}}, \code{\link[=booltype]{booltype()}},
\code{\link[=is.booltype]{is.booltype()}}
}