reshape coming back with error
#### loading libraries
library(dplyr)
library(tidyr)
#NWIS Data Pull
library(dataRetrieval)
APISsites <- whatNWISsites(bBox="-90.821228,46.523202,-90.551033,46.726683")
#filtering out the lake and stream site IDs only
SiteTypes <- c("LK", "ST")
APISsites_cleaned <- filter(APISsites, site_tp_cd == "ST" |site_tp_cd == "LK")
#listing site IDs
STAIDS <- unique(APISsites_cleaned$site_no)
#creating list of Site info for metadata file
APISsiteinfo <- readNWISsite(STAIDS)
#creating objects for retreival
startdate <- "2005-01-01"
enddate <- "2017-10-01"
parameters <- "all"
#this line worked
APISqw <- readNWISqw(STAIDS, parameters, startdate, enddate)
#this line didn't work
APISqw_wide <- readNWISqw(STAIDS, parameters, startdate, enddate, reshape=TRUE)