Nothing
#' @export
`&.broadcaster` <- function(e1, e2) {
.binary_stop_general(e1, e2, "&", sys.call())
if(is.complex(e1) || is.double(e1)) {
e1 <- as_bool(e1)
}
if(is.complex(e2) || is.double(e2)) {
e2 <- as_bool(e2)
}
if(.is_int32(e1) && .is_int32(e2)) {
out <- .bc_b(e1, e2, 1L, sys.call())
}
else if(is.raw(e1) && is.raw(e2)) {
out <- .bc_bit(e1, e2, 1L, sys.call())
}
else {
stop("operations are possible only for numeric, logical or complex types")
}
return(out)
}
#' @export
`|.broadcaster` <- function(e1, e2) {
.binary_stop_general(e1, e2, "|", sys.call())
if(is.complex(e1) || is.double(e1)) {
e1 <- as_bool(e1)
}
if(is.complex(e2) || is.double(e2)) {
e2 <- as_bool(e2)
}
if(.is_int32(e1) && .is_int32(e2)) {
out <- .bc_b(e1, e2, 2L, sys.call())
}
else if(is.raw(e1) && is.raw(e2)) {
out <- .bc_bit(e1, e2, 2L, sys.call())
}
else {
stop("operations are possible only for numeric, logical or complex types")
}
return(out)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.