R/pillar_utils.R

Defines functions cols_to_pillars pillars_to_cols

pillars_to_cols <- function(arr3d, parallel = FALSE) {
  n_cores <- translate_parallel(parallel)
  RcppParallel::setThreadOptions(n_cores)
  on.exit(RcppParallel::setThreadOptions(RcppParallel::defaultNumThreads()))
  pillars_to_cols_(arr3d)
}

cols_to_pillars <- function(mat, output_dim, parallel = FALSE) {
  n_cores <- translate_parallel(parallel)
  RcppParallel::setThreadOptions(n_cores)
  on.exit(RcppParallel::setThreadOptions(RcppParallel::defaultNumThreads()))
  cols_to_pillars_(mat, output_dim)
}

Try the detrendr package in your browser

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

detrendr documentation built on March 7, 2023, 7:52 p.m.