R/new_df.R

Defines functions new.df

# Generate a new empty data fram with the specified number of columns.
new.df <- function(cols) {
  data.frame(matrix(vector(), 
                    0, cols, 
                    dimnames=list(c(), 
                                  c(1:cols))), 
             stringsAsFactors=F)
}
trahelyk/trahelyk_pkg documentation built on June 14, 2021, 9:25 p.m.