R/load_data_fct.R

Defines functions load_data

Documented in load_data

#' load datafile
#' 
#' Load a dataframe from an excel sheet and call EndoPaste on it
#' 
#' @param filepath filepath
#' @return dataframe
load_data <- function(filepath){
  
  data_file <- readxl::read_excel(filepath)
  return(data.frame(EndoMineR::EndoPaste(data_file)[1], stringsAsFactors = FALSE))
  
}
nhs-r-community/shinyEndomineR documentation built on Nov. 22, 2022, 10:27 a.m.