Skip to content
Snippets Groups Projects
getPreLoadedSampleData.r 746 B
Newer Older
Laura A DeCicco's avatar
Laura A DeCicco committed
#' Import Preloaded Sample Data for WRTDS use
#'
#' This function is intended to convert sample data that is already loaded into the R enviornment to the WRTDS daily data frame.
#'
#' @param loadedData dataframe that is already loaded in R session
#' @param interactive logical Option for interactive mode.  If true, there is user interaction for error handling and data checks.
#' @keywords data import  WRTDS
#' @export
#' @return Sample dataframe 
#' @examples
#' Sample <- getPreLoadedSampleData(ChoptankRiverNitrate, interactive=FALSE)
Laura A DeCicco's avatar
Laura A DeCicco committed
getPreLoadedSampleData <- function (loadedData,interactive=TRUE){

  compressedData <- compressData(loadedData,interactive=interactive)
Laura A DeCicco's avatar
Laura A DeCicco committed
  Sample <- populateSampleColumns(compressedData)
  return(Sample)
Laura A DeCicco's avatar
Laura A DeCicco committed
}