R/utils.R

Defines functions rewrap_xy rewrap

rewrap <- function(f, x, ...) {
  res <- f(unclass(x), ...)
  class(res) <- c("chars", "character")
  res
}

rewrap_xy <- function(f, x, y, ...) {
  res <- f(unclass(x), unclass(y), ...)
  class(res) <- c("chars", "character")
  res
}

Try the charcuterie package in your browser

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

charcuterie documentation built on April 3, 2025, 8:53 p.m.