R/preprocess_data.R

Defines functions preprocess_data

preprocess_data <- function(input) {
  data <- load_data(input)
  
  # error handling: add ID without data -> ignore input
  if (is.null(data) && input$id == TRUE) {
    return(NULL)
  }
  
  data <- data_reduction(input, data)
  data <- add_id(input, data)
  data
}
MeikeSteinhilber/spirit documentation built on Dec. 17, 2021, 3:22 a.m.