R/col_copier.R

Defines functions col_copier

Documented in col_copier

#' Rearrange (and copy) the columns of a matrix
#' 
#' @param d The design matrix
#' @param cols object that can be coerced into a numeric vector such that cols should 


col_copier <- function(d, cols){
  e <- d[,as.vector(cols)]
  return(e)
}
vinny-paris/optrotvec documentation built on April 9, 2021, 4:34 a.m.