readUserInfo error
jjwill2 opened this issue · comments
I am using EGRET 3.0.2, R version 3.6.2, mergeReport yielded a report, but also an error and failed to create an eList object:
read in data--------------------------------------------------------------------
flow data
fileName <-"flow_formatted.csv"
filePath <-"./"
daily <-readUserDaily(fileName, filePath, separator = ",")
str(daily)
SSC sample data
samplefile <-"isco_formatted.csv"
samplepath <-"./"
conc <-readUserSample(samplefile, samplepath, separator = ",")
str(conc)
info file
infofile <-"info.csv"
infopath <-"./"
info <-readUserInfo(infofile, infopath, separator = ",")
str(info)
merge report-----------------------------------------------------------------
Johns_project <-mergeReport(info, daily, conc)
Discharge Record is 8702 days long, which is 24 years
First day of the discharge record is 1986-01-01 and last day is 2011-12-31
The water quality record has 1353 samples
The first sample is from 1986-03-04 and the last sample is from 2011-08-01
Discharge: Minimum, mean and maximum 0.309 4.22 82.7
Concentration: Minimum, mean and maximum 0.18 11 2100
Percentage of the sample values that are censored is 0 %Error in duplicated(eList$Daily$Date) : object 'eList' not found
I think I fixed that a little bit ago, can you try:
remotes::install_github("USGS-R/EGRET")
and try again?
cleaning up the flow data solved the problem. Thank you.