R/rev_ff.R

Defines functions rev.ff

#' @export 
rev.ff <- function(x){
  y <- ff::clone.ff(x)
  N <- length(x) + 1L
  for (i in chunk(x)){
    y[i] <- x[N-i]
  }
  y
}

# #' quick testing
# x <- ff(1:100)
# rev(x)

Try the ffbase package in your browser

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

ffbase documentation built on Feb. 27, 2021, 5:06 p.m.