From 030b6fe4d4deeaa2273f412b5a4eb2cfb9b4495d Mon Sep 17 00:00:00 2001 From: Laura DeCicco <ldecicco@usgs.gov> Date: Thu, 14 Mar 2013 11:34:29 -0500 Subject: [PATCH] Removed getPreLoadedQWData function because it didn't actually do anything, and wasn't being used. --- DESCRIPTION | 1 - R/getPreLoadedQWData.r | 20 -------------------- man/getPreLoadedQWData.Rd | 24 ------------------------ 3 files changed, 45 deletions(-) delete mode 100644 R/getPreLoadedQWData.r delete mode 100644 man/getPreLoadedQWData.Rd diff --git a/DESCRIPTION b/DESCRIPTION index f8223287..536d8dc1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -21,7 +21,6 @@ Collate: 'getDataFromFile.r' 'getParameterInfo.r' 'getPreLoadedData.r' - 'getPreLoadedQWData.r' 'checkStartEndDate.r' 'dateFormatCheck.r' 'formatCheckDate.r' diff --git a/R/getPreLoadedQWData.r b/R/getPreLoadedQWData.r deleted file mode 100644 index 93978445..00000000 --- a/R/getPreLoadedQWData.r +++ /dev/null @@ -1,20 +0,0 @@ -#' 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 diff --git a/man/getPreLoadedQWData.Rd b/man/getPreLoadedQWData.Rd deleted file mode 100644 index 980ba440..00000000 --- a/man/getPreLoadedQWData.Rd +++ /dev/null @@ -1,24 +0,0 @@ -\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} - -- GitLab