R/compileAsList.R

#' compileAsList
#'
#' Compiles all entries (xlsx files) and creates a version of the database as a list
#'
#' @param dataset_directory directory where compeleted and QC passed soilcarbon datasets are stored
#' @export

compileAsList = function(dataset_directory){
  entryNames=list.files(dataset_directory, full.names=FALSE, recursive=FALSE)
  shortNames=(strsplit(entryNames,split=".xlsx"))
  paths=paste(dataset_directory,entryNames, sep="")

  out=lapply(paths,read.soilcarbon)
  return(out)
}
powellcenter-soilcarbon/soilcarbon documentation built on May 25, 2019, 11:24 a.m.