### 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)
} # 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 May 2, 2019, 4:08 a.m.