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

Fix broken warning check.

parent 079e8c09
No related branches found
No related tags found
1 merge request!85Updates mainly to expose sysdata, but also improvements in readNWISdata and qw.
......@@ -142,7 +142,7 @@ readNWISqw <- function (siteNumbers,parameterCd,startDate="",endDate="",
"hyd_event_cd","sample_lab_cm_tx")
columnsToMelt <- columnsToMelt[columnsToMelt %in% names(data)]
dataWithPcodes <- data[data$parm_cd != "",]
if(sum(data$parm_cd != "") > 0){
if(sum(data$parm_cd == "") > 0){
warning("Some or all data returned without pCodes, those data will not be included in reshape")
}
longDF <- melt(dataWithPcodes, columnsToMelt)
......
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