Skip to content
Snippets Groups Projects
getDailyDataFromFile.Rd 1.24 KiB
Newer Older
Laura A DeCicco's avatar
Laura A DeCicco committed
\name{getDailyDataFromFile}
\alias{getDailyDataFromFile}
\title{Import Daily Data for WRTDS}
\usage{
getDailyDataFromFile(filePath, fileName, hasHeader = TRUE, separator = ",",
  qUnit = 1, interactive = TRUE)
Laura A DeCicco's avatar
Laura A DeCicco committed
}
\arguments{
  \item{filePath}{string specifying the path to the file}

  \item{fileName}{string name of file to open}

  \item{hasHeader}{logical true if the first row of data is
  the column headers}

  \item{separator}{string character that separates data
  cells}

  \item{qUnit}{number 1 is cubic feet per second, 2 is
  cubic meters per second, 3 is 10^3 cubic feet per second,
  and 4 is 10^3 cubic meters per second}

  \item{interactive}{logical Option for interactive mode.
  If true, there is user interaction for error handling and
  data checks.}
}
\value{
Laura A DeCicco's avatar
Laura A DeCicco committed
}
\description{
Imports data from a user-supplied file, and converts it to
a Daily data frame, appropriate for WRTDS calculations.
Laura A DeCicco's avatar
Laura A DeCicco committed
}
\examples{
# Examples of how to use getDailyDataFromFile:
# Change the file path and file name to something meaningful:
filePath <-  '~/RData/'  # Sample format
Laura A DeCicco's avatar
Laura A DeCicco committed
fileName <- 'ChoptankRiverFlow.txt'
\dontrun{getDailyDataFromFile(filePath,fileName,separator="\\t")}
Laura A DeCicco's avatar
Laura A DeCicco committed
}
\keyword{USGS}
\keyword{WRTDS}
Laura A DeCicco's avatar
Laura A DeCicco committed
\keyword{data}
\keyword{file}
\keyword{import}