R/recode_data.R

recode_data <-
function (data, dimens, alpha = 1) {

  if (!is.data.frame(data)) {
    stop ("class(data) != 'data.frame'")
  }
  else if (is.null(colnames(data))) {
    stop ("Please add column names to data")
  }
  
  toKeep <- complete.cases(data) 
  data <- data[toKeep,,drop = F]

  check_args_recode_data (data, dimens, alpha) 

  return(recode_data_main(data, dimens, alpha))

}

Try the genMOSS package in your browser

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

genMOSS documentation built on May 2, 2019, 2:31 p.m.