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

Adding make.names to column names.

parent 433ab78c
No related branches found
No related tags found
1 merge request!45Mostly help file updates. Took out some attributes to the WaterML1 output.
......@@ -23,7 +23,7 @@
#' endDate <- "2012-10-01"
#' offering <- "00003"
#' property <- "00060"
#' \dontrun{
#'
#' obs_url <- constructNWISURL(siteNumber,property,
#' startDate,endDate,"dv",format="tsv")
#' data <- importRDB1(obs_url)
......@@ -47,7 +47,7 @@
#' fileName <- "RDB1Example.txt"
#' fullPath <- file.path(filePath, fileName)
#' importUserRDB <- importRDB1(fullPath)
#' }
#'
importRDB1 <- function(obs_url, asDateTime=FALSE, qw=FALSE, convertType = TRUE, tz=""){
if(tz != ""){
......@@ -223,6 +223,8 @@ importRDB1 <- function(obs_url, asDateTime=FALSE, qw=FALSE, convertType = TRUE,
row.names(data) <- NULL
}
names(data) <- make.names(names(data))
comment(data) <- hdr
attr(data, "url") <- obs_url
attr(data, "queryTime") <- Sys.time()
......
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