Skip to content
Snippets Groups Projects
Commit 030b6fe4 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Removed getPreLoadedQWData function because it didn't actually do anything, and wasn't being used.

parent 25e144f4
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,6 @@ Collate: ...@@ -21,7 +21,6 @@ Collate:
'getDataFromFile.r' 'getDataFromFile.r'
'getParameterInfo.r' 'getParameterInfo.r'
'getPreLoadedData.r' 'getPreLoadedData.r'
'getPreLoadedQWData.r'
'checkStartEndDate.r' 'checkStartEndDate.r'
'dateFormatCheck.r' 'dateFormatCheck.r'
'formatCheckDate.r' 'formatCheckDate.r'
......
#' Convert Preloaded QW Data
#'
#' Imports data from data already pre-loaded into the R workspace. Specifically used to import water flow data for use in the WRTDS package.
#' For WRTDS usage, the first column is expected to be dates, the second column measured values.
#' The third column is optional, it contains any remark codes.
#'
#' @param rawData dataframe data already loaded into R workspace
#' @keywords data import
#' @return retval dataframe with dateTime, value, and code columns
getPreLoadedQWData <- function (rawData){
retval <- as.data.frame(rawData, stringsAsFactors=FALSE)
numColumns <- ncol(retval)
i <- 1
while (i <= numColumns) {
retval[[i]] <- as.character(retval[[i]])
i <- i + 1
}
retval[[1]] <- as.character(retval[[1]])
return (retval)
}
\ No newline at end of file
\name{getPreLoadedQWData}
\alias{getPreLoadedQWData}
\title{Convert Preloaded QW Data}
\usage{
getPreLoadedQWData(rawData)
}
\arguments{
\item{rawData}{dataframe data already loaded into R
workspace}
}
\value{
retval dataframe with dateTime, value, and code columns
}
\description{
Imports data from data already pre-loaded into the R
workspace. Specifically used to import water flow data
for use in the WRTDS package. For WRTDS usage, the first
column is expected to be dates, the second column
measured values. The third column is optional, it
contains any remark codes.
}
\keyword{data}
\keyword{import}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment