R/make_names.R

Defines functions make.names

Documented in make.names

#' Helper fn
#'
#' @description Names the columns of your dataset to help out
#'
#' @param len the length of your name vector
#' @param pref the prefix
#'
#' @return returns a vector of names of the form x1, x2, .... xN


make.names <- function(len, pref){
  name = c(rep(NA,len))
  for(i in 1:len){
    name[i] = paste(pref,i,sep = "")
  }
  return(name)
}
jackiemauro/hurdleIV documentation built on May 18, 2019, 7:56 a.m.