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

Moved column names def. to Daily function.

parent 1324a6be
No related branches found
No related tags found
1 merge request!35Fixed sample user file function.
...@@ -58,6 +58,7 @@ getUserDaily <- function (filePath,fileName,hasHeader=TRUE,separator=",",qUnit=1 ...@@ -58,6 +58,7 @@ getUserDaily <- function (filePath,fileName,hasHeader=TRUE,separator=",",qUnit=1
if (interactive){ if (interactive){
if(qUnit==1) cat("\n the input discharge are assumed to be in cubic feet per second\nif they are in cubic meters per second, then the call to getDailyDataFromFile should specify qUnit=2\n") if(qUnit==1) cat("\n the input discharge are assumed to be in cubic feet per second\nif they are in cubic meters per second, then the call to getDailyDataFromFile should specify qUnit=2\n")
} }
names(data) <- c("dateTime", "value")
localDaily <- populateDaily(data,qConvert, interactive=interactive) localDaily <- populateDaily(data,qConvert, interactive=interactive)
localDaily <- localDaily[!is.na(localDaily$Q),] localDaily <- localDaily[!is.na(localDaily$Q),]
return(localDaily) return(localDaily)
......
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