R/my.util.r

Defines functions my.generate.list

### Generate a (column-wised) list structure for given # of rows and columns.
my.generate.list <- function(value, nrow, ncol){
  ret <- vector(mode = "list", length = ncol)
  for(i in 1:ncol){
    ret[[i]] <- rep(value, length = nrow)
  }
  ret
} # End of my.generate.list()

Try the cubfits package in your browser

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

cubfits documentation built on Nov. 8, 2021, 1:07 a.m.