R/which_raw.R

Defines functions which_raw

#' Indices of truthy raw values
#' @param x A raw vector. Other vectors are converted to logical if nonzero.
#' @return
#' which(x != as.raw(0))
#' @noRd

which_raw <- function(x) {
  .Call("C_which_raw", x, getOption("hutilscpp.nThread", 10L), PACKAGE = "hutilscpp")
}

Try the hutilscpp package in your browser

Any scripts or data that you put into this service are public.

hutilscpp documentation built on Oct. 11, 2023, 9:06 a.m.