diff --git a/man/getWaterML1Data.Rd b/man/getWaterML1Data.Rd index 6735e0f697d431d63dbc41ae34bbb4e7b864dd24..b845b95aab3ae93e62c3d5ef0afa7c7044912937 100644 --- a/man/getWaterML1Data.Rd +++ b/man/getWaterML1Data.Rd @@ -25,5 +25,7 @@ obs_url <- constructNWISURL(sites,property,startDate,endDate,'dv') data <- getWaterML1Data(obs_url) urlMulti <- constructNWISURL("04085427",c("00060","00010"),startDate,endDate,'dv',statCd=c("00003","00001")) multiData <- getWaterML1Data(urlMulti) +goundwaterExampleURL <- "http://waterservices.usgs.gov/nwis/gwlevels/?format=waterml&sites=431049071324301&startDT=2013-10-01&endDT=2014-06-30" +groundWater <- getWaterML1Data(goundwaterExampleURL) } diff --git a/vignettes/dataRetrieval-concordance.tex b/vignettes/dataRetrieval-concordance.tex index 19e8199efeefbbfcf32e9b38669b8ab97e04c80f..6c049207280a631800833b12426de7a62aaf9832 100644 --- a/vignettes/dataRetrieval-concordance.tex +++ b/vignettes/dataRetrieval-concordance.tex @@ -1,9 +1,9 @@ \Sconcordance{concordance:dataRetrieval.tex:dataRetrieval.Rnw:% -1 126 1 49 0 1 7 15 1 1 9 51 1 3 0 36 1 2 0 11 1 24 0 % -24 1 3 0 23 1 3 0 6 1 7 0 18 1 3 0 25 1 1 0 17 1 9 0 % -6 1 7 0 21 1 8 0 16 1 2 0 11 1 23 0 21 1 9 0 20 1 3 0 % -6 1 17 0 27 1 6 0 11 1 9 0 15 1 4 0 19 1 4 0 21 1 4 0 % -17 1 7 0 22 1 8 0 19 1 4 0 9 1 4 0 78 1 1 2 9 1 1 4 4 % -1 20 0 44 1 4 0 32 1 4 0 21 1 4 0 21 1 37 0 13 1 9 0 % -95 1 4 0 9 1 13 0 13 1 4 0 14 1 4 0 5 1 4 0 23 1 18 0 % -8 1 4 0 55 1} +1 126 1 49 0 1 7 15 1 1 14 55 1 3 0 36 1 2 0 11 1 24 % +0 24 1 3 0 23 1 3 0 6 1 7 0 18 1 3 0 25 1 1 0 17 1 9 % +0 6 1 7 0 21 1 8 0 16 1 2 0 11 1 23 0 21 1 9 0 20 1 3 % +0 6 1 17 0 27 1 6 0 11 1 9 0 15 1 20 0 21 1 4 0 21 1 % +4 0 17 1 7 0 22 1 8 0 19 1 4 0 9 1 4 0 78 1 1 2 9 1 1 % +4 4 1 20 0 44 1 4 0 32 1 4 0 21 1 4 0 21 1 37 0 13 1 % +9 0 95 1 4 0 9 1 12 0 13 1 4 0 14 1 4 0 5 1 4 0 23 1 % +18 0 8 1 4 0 55 1} diff --git a/vignettes/dataRetrieval.Rnw b/vignettes/dataRetrieval.Rnw index 571507536f12d486d77dfc11c214fc24be10bc66..10862cbb57c73b20f9e0047d65c9ca00d06e2367 100644 --- a/vignettes/dataRetrieval.Rnw +++ b/vignettes/dataRetrieval.Rnw @@ -52,7 +52,7 @@ {\thesubsubsection}{0.5em}{} \titlecontents{section} -[2.3em] % adjust left margin +[2em] % adjust left margin {\sffamily} % font formatting {\contentslabel{2.3em}} % section label and offset {\hspace*{-2.3em}} @@ -73,14 +73,14 @@ {\titlerule*[0.25pc]{.}\contentspage} \titlecontents{table} -[-2.3em] % adjust left margin +[0em] % adjust left margin {\sffamily} % font formatting {\textbf{Table}\hspace*{2em} \contentslabel {2em}} % section label and offset {\hspace*{4em}} {\titlerule*[0.25pc]{.}\contentspage} \titlecontents{figure} -[-2.3em] % adjust left margin +[0em] % adjust left margin {\sffamily} % font formatting {\textbf{Figure}\hspace*{2em} \contentslabel {2em}} % section label and offset {\hspace*{4em}} @@ -152,15 +152,24 @@ knit_hooks$set(inline = function(x) { if (is.numeric(x)) round(x, 3)}) knit_hooks$set(crop = hook_pdfcrop) -bold.colHeaders <- function(x) paste("\\multicolumn{1}{c}{\\textbf{\\textsf{", x, "}}}", sep = "") +bold.colHeaders <- function(x) { + x <- gsub("\\^(\\d)","$\\^\\1$",x) + x <- gsub("\\%","\\\\%",x) + x <- gsub("\\_"," ",x) + returnX <- paste("\\multicolumn{1}{c}{\\textbf{\\textsf{", x, "}}}", sep = "") +} addSpace <- function(x) ifelse(x != "1", "[5pt]","") @ +\noindent{\huge\textsf{\textbf{The dataRetrieval R package}}} +\noindent\textsf{By Laura De Cicco and Robert Hirsch} -\maketitle +\noindent\textsf{\today} -\newpage +% \maketitle +% +% \newpage \tableofcontents \listoffigures @@ -516,11 +525,13 @@ There are additional water quality data sets available from the Water Quality Da <<label=getQWData, echo=TRUE>>= -# specificCond <- getWQPData('WIDNR_WQX-10032762', -# 'Specific conductance','','') -# head(specificCond) +specificCond <- getWQPData('WIDNR_WQX-10032762', + 'Specific conductance','','') +head(specificCond) @ +There are + \FloatBarrier %------------------------------------------------------------ \subsection{URL Construction} diff --git a/vignettes/dataRetrieval.lof b/vignettes/dataRetrieval.lof index 582b0ff3d40294bd7c1e46f08f8794fb108430d3..874492184ba2946bce598a5d461db6b2a2510213 100644 --- a/vignettes/dataRetrieval.lof +++ b/vignettes/dataRetrieval.lof @@ -1,6 +1,6 @@ \select@language {american} -\contentsline {figure}{\numberline {1}{\ignorespaces Temperature and discharge plot of Choptank River in 2012}}{12}{figure.caption.4} -\contentsline {figure}{\numberline {2}{\ignorespaces Nitrate plot of Choptank River}}{15}{figure.caption.5} +\contentsline {figure}{\numberline {1}{\ignorespaces Temperature and discharge plot of Choptank River in 2012}}{11}{figure.caption.4} +\contentsline {figure}{\numberline {2}{\ignorespaces Nitrate plot of Choptank River}}{14}{figure.caption.5} \contentsline {figure}{\numberline {3}{\ignorespaces Default multiPlotDataOverview}}{27}{figure.caption.10} \contentsline {figure}{\numberline {4}{\ignorespaces A simple R help file\relax }}{31}{figure.caption.14} \contentsline {figure}{\numberline {5}{\ignorespaces A simple table produced in Microsoft Excel\relax }}{34}{figure.caption.15} diff --git a/vignettes/dataRetrieval.log b/vignettes/dataRetrieval.log index 543b8cc6256af806c9032f4dce7aa35e4f451a5e..c73a0b0efd0f300b660533e4794ea534a534bbb1 100644 --- a/vignettes/dataRetrieval.log +++ b/vignettes/dataRetrieval.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2012.1.6) 15 JUL 2014 09:39 +This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2012.1.6) 1 AUG 2014 16:04 entering extended mode **dataRetrieval.tex (D:\LADData\RCode\dataRetrieval\vignettes\dataRetrieval.tex @@ -594,225 +594,233 @@ Package caption Info: Begin \AtBeginDocument code. Package caption Info: subfig package v1.3 is loaded. Package caption Info: threeparttable package is loaded. Package caption Info: End \AtBeginDocument code. -LaTeX Font Info: Try loading font information for OT1+ztmcm on input line 19 -6. - -("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\ot1ztmcm.fd" -File: ot1ztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ztmcm. -) -LaTeX Font Info: Try loading font information for OML+ztmcm on input line 19 -6. - -("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\omlztmcm.fd" -File: omlztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ztmcm. -) -LaTeX Font Info: Try loading font information for OMS+ztmcm on input line 19 -6. - -("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\omsztmcm.fd" -File: omsztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/ztmcm. -) -LaTeX Font Info: Try loading font information for OMX+ztmcm on input line 19 -6. - -("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\omxztmcm.fd" -File: omxztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/ztmcm. -) -LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <12> not available -(Font) Font shape `OT1/ptm/b/n' tried instead on input line 196. -LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <9> not available -(Font) Font shape `OT1/ptm/b/n' tried instead on input line 196. -LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7> not available -(Font) Font shape `OT1/ptm/b/n' tried instead on input line 196. - -Overfull \vbox (21.68121pt too high) has occurred while \output is active [] - - -[1 - -{C:/Users/ldecicco/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}] -LaTeX Font Info: Try loading font information for OT1+phv on input line 200. +LaTeX Font Info: Try loading font information for OT1+phv on input line 194. ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\ot1phv.fd" File: ot1phv.fd 2001/06/04 scalable font definitions for OT1/phv. ) LaTeX Font Info: Font shape `OT1/phv/m/n' will be -(Font) scaled to size 9.85492pt on input line 200. +(Font) scaled to size 18.66588pt on input line 194. +LaTeX Font Info: Font shape `OT1/phv/bx/n' in size <20.74> not available +(Font) Font shape `OT1/phv/b/n' tried instead on input line 194. +LaTeX Font Info: Font shape `OT1/phv/b/n' will be +(Font) scaled to size 18.66588pt on input line 194. +LaTeX Font Info: Font shape `OT1/phv/m/n' will be +(Font) scaled to size 9.85492pt on input line 196. LaTeX Font Info: Font shape `OT1/phv/bx/n' in size <10.95> not available -(Font) Font shape `OT1/phv/b/n' tried instead on input line 200. +(Font) Font shape `OT1/phv/b/n' tried instead on input line 204. LaTeX Font Info: Font shape `OT1/phv/b/n' will be -(Font) scaled to size 9.85492pt on input line 200. +(Font) scaled to size 9.85492pt on input line 204. LaTeX Font Info: Font shape `OT1/phv/bx/n' in size <17.28> not available -(Font) Font shape `OT1/phv/b/n' tried instead on input line 200. +(Font) Font shape `OT1/phv/b/n' tried instead on input line 204. LaTeX Font Info: Font shape `OT1/phv/b/n' will be -(Font) scaled to size 15.55188pt on input line 200. +(Font) scaled to size 15.55188pt on input line 204. -(D:\LADData\RCode\dataRetrieval\vignettes\dataRetrieval.toc) -\tf@toc=\write4 - -(D:\LADData\RCode\dataRetrieval\vignettes\dataRetrieval.lof +(D:\LADData\RCode\dataRetrieval\vignettes\dataRetrieval.toc Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[2]) +[1 + +{C:/Users/ldecicco/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]) +\tf@toc=\write4 + +(D:\LADData\RCode\dataRetrieval\vignettes\dataRetrieval.lof) \tf@lof=\write5 - (D:\LADData\RCode\dataRetrieval\vignettes\dataRetrieval.lot) + +(D:\LADData\RCode\dataRetrieval\vignettes\dataRetrieval.lot +Overfull \hbox (1.53842pt too wide) in paragraph at lines 4--4 +[]|\OT1/phv/b/n/10.95 Table| | [][]\OT1/phv/m/n/10.95 Daily mean data avail-ab +ile at the Chop-tank River near Greens-boro, MD. [Some columns + [] + +) \tf@lot=\write6 Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[3] +[2] +LaTeX Font Info: Try loading font information for OT1+ztmcm on input line 21 +3. + ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\ot1ztmcm.fd" +File: ot1ztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OT1/ztmcm. +) +LaTeX Font Info: Try loading font information for OML+ztmcm on input line 21 +3. + +("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\omlztmcm.fd" +File: omlztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OML/ztmcm. +) +LaTeX Font Info: Try loading font information for OMS+ztmcm on input line 21 +3. + +("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\omsztmcm.fd" +File: omsztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMS/ztmcm. +) +LaTeX Font Info: Try loading font information for OMX+ztmcm on input line 21 +3. + +("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\omxztmcm.fd" +File: omxztmcm.fd 2000/01/03 Fontinst v1.801 font definitions for OMX/ztmcm. +) LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <10.95> not available -(Font) Font shape `OT1/ptm/b/n' tried instead on input line 209. +(Font) Font shape `OT1/ptm/b/n' tried instead on input line 213. LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <8> not available -(Font) Font shape `OT1/ptm/b/n' tried instead on input line 209. +(Font) Font shape `OT1/ptm/b/n' tried instead on input line 213. LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <6> not available -(Font) Font shape `OT1/ptm/b/n' tried instead on input line 209. -Package color Info: Redefining color shadecolor on input line 219. -LaTeX Font Info: Try loading font information for OT1+pcr on input line 220. +(Font) Font shape `OT1/ptm/b/n' tried instead on input line 213. +Package color Info: Redefining color shadecolor on input line 223. +LaTeX Font Info: Try loading font information for OT1+pcr on input line 224. - ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\ot1pcr.fd" + +("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\ot1pcr.fd" File: ot1pcr.fd 2001/06/04 font definitions for OT1/pcr. ) LaTeX Font Info: Font shape `OT1/pcr/bx/n' in size <10.95> not available -(Font) Font shape `OT1/pcr/b/n' tried instead on input line 221. +(Font) Font shape `OT1/pcr/b/n' tried instead on input line 225. LaTeX Font Info: Font shape `OT1/pcr/m/it' in size <10.95> not available -(Font) Font shape `OT1/pcr/m/sl' tried instead on input line 222. +(Font) Font shape `OT1/pcr/m/sl' tried instead on input line 226. -Underfull \vbox (badness 10000) detected at line 245 +Underfull \vbox (badness 10000) detected at line 249 [] Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[4] +[3] Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[5] +[4] +LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <9> not available +(Font) Font shape `OT1/ptm/b/n' tried instead on input line 275. +LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7> not available +(Font) Font shape `OT1/ptm/b/n' tried instead on input line 275. LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <5> not available -(Font) Font shape `OT1/ptm/b/n' tried instead on input line 271. +(Font) Font shape `OT1/ptm/b/n' tried instead on input line 275. LaTeX Font Info: Font shape `OT1/phv/bx/n' in size <9> not available -(Font) Font shape `OT1/phv/b/n' tried instead on input line 273. +(Font) Font shape `OT1/phv/b/n' tried instead on input line 277. LaTeX Font Info: Font shape `OT1/phv/b/n' will be -(Font) scaled to size 8.09995pt on input line 273. -Package color Info: Redefining color shadecolor on input line 289. +(Font) scaled to size 8.09995pt on input line 277. +Package color Info: Redefining color shadecolor on input line 293. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[6] +[5] LaTeX Font Info: Font shape `OT1/phv/bx/n' in size <14.4> not available -(Font) Font shape `OT1/phv/b/n' tried instead on input line 353. +(Font) Font shape `OT1/phv/b/n' tried instead on input line 357. LaTeX Font Info: Font shape `OT1/phv/b/n' will be -(Font) scaled to size 12.9599pt on input line 353. +(Font) scaled to size 12.9599pt on input line 357. LaTeX Font Info: Font shape `OT1/phv/m/n' will be -(Font) scaled to size 10.79993pt on input line 358. -Package color Info: Redefining color shadecolor on input line 365. -Package color Info: Redefining color shadecolor on input line 377. +(Font) scaled to size 10.79993pt on input line 362. +Package color Info: Redefining color shadecolor on input line 369. +Package color Info: Redefining color shadecolor on input line 381. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[7] -Package color Info: Redefining color shadecolor on input line 397. +[6] +Package color Info: Redefining color shadecolor on input line 401. -Overfull \hbox (36.60727pt too wide) in paragraph at lines 442--443 +Overfull \hbox (36.60727pt too wide) in paragraph at lines 446--447 []\OT1/ptm/m/n/10.95 To ob-tain all of the avail-able in-for-ma-tion con-cern-i ng a mea-sured pa-ram-e-ter, use the \OT1/pcr/m/n/10.95 getParameterInfo [] -Package color Info: Redefining color shadecolor on input line 445. +Package color Info: Redefining color shadecolor on input line 449. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[8] -Package color Info: Redefining color shadecolor on input line 463. -Package color Info: Redefining color shadecolor on input line 483. +[7] +Package color Info: Redefining color shadecolor on input line 467. +Package color Info: Redefining color shadecolor on input line 487. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[9] -Package color Info: Redefining color shadecolor on input line 507. -Package color Info: Redefining color shadecolor on input line 525. +[8] +Package color Info: Redefining color shadecolor on input line 511. +Package color Info: Redefining color shadecolor on input line 529. -Underfull \vbox (badness 10000) detected at line 551 +Underfull \vbox (badness 10000) detected at line 555 [] Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[10] -Package color Info: Redefining color shadecolor on input line 557. +[9] +Package color Info: Redefining color shadecolor on input line 561. LaTeX Warning: No positions in optional float specifier. - Default added (so using `tbp') on input line 576. + Default added (so using `tbp') on input line 580. -<figure/getNWIStemperaturePlot.pdf, id=275, 505.89pt x 505.89pt> +<figure/getNWIStemperaturePlot.pdf, id=271, 505.89pt x 505.89pt> File: figure/getNWIStemperaturePlot.pdf Graphic file (type pdf) <use figure/getNWIStemperaturePlot.pdf> Package pdftex.def Info: figure/getNWIStemperaturePlot.pdf used on input line 5 -78. +82. (pdftex.def) Requested size: 448.07928pt x 448.07928pt. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[11] +[10] Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[12 <D:/LADData/RCode/dataRetrieval/vignettes/figure/getNWIStemperaturePlot.pdf +[11 <D:/LADData/RCode/dataRetrieval/vignettes/figure/getNWIStemperaturePlot.pdf >] -Package color Info: Redefining color shadecolor on input line 596. -Package color Info: Redefining color shadecolor on input line 610. +Package color Info: Redefining color shadecolor on input line 600. +Package color Info: Redefining color shadecolor on input line 614. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[13] -Package color Info: Redefining color shadecolor on input line 645. -Package color Info: Redefining color shadecolor on input line 666. +[12] +Package color Info: Redefining color shadecolor on input line 649. +Package color Info: Redefining color shadecolor on input line 670. LaTeX Warning: No positions in optional float specifier. - Default added (so using `tbp') on input line 675. + Default added (so using `tbp') on input line 679. -<figure/getQWtemperaturePlot.pdf, id=297, 505.89pt x 505.89pt> +<figure/getQWtemperaturePlot.pdf, id=292, 505.89pt x 505.89pt> File: figure/getQWtemperaturePlot.pdf Graphic file (type pdf) <use figure/getQWtemperaturePlot.pdf> -Package pdftex.def Info: figure/getQWtemperaturePlot.pdf used on input line 677 +Package pdftex.def Info: figure/getQWtemperaturePlot.pdf used on input line 681 . (pdftex.def) Requested size: 448.07378pt x 448.07928pt. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[14] +[13] Overfull \vbox (21.68121pt too high) has occurred while \output is active [] -[15 <D:/LADData/RCode/dataRetrieval/vignettes/figure/getQWtemperaturePlot.pdf>] -Package color Info: Redefining color shadecolor on input line 693. -LaTeX Font Info: Try loading font information for TS1+pcr on input line 695. +[14 <D:/LADData/RCode/dataRetrieval/vignettes/figure/getQWtemperaturePlot.pdf>] +Package color Info: Redefining color shadecolor on input line 697. +LaTeX Font Info: Try loading font information for TS1+pcr on input line 699. ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\ts1pcr.fd" File: ts1pcr.fd 2001/06/04 font definitions for TS1/pcr. ) -LaTeX Font Info: Font shape `TS1/pcr/m/it' in size <10.95> not available -(Font) Font shape `TS1/pcr/m/sl' tried instead on input line 695. -Package color Info: Redefining color shadecolor on input line 711. +Overfull \vbox (21.68121pt too high) has occurred while \output is active [] + -Overfull \hbox (5.25568pt too wide) in paragraph at lines 720--720 +[15] +Package color Info: Redefining color shadecolor on input line 733. + +Overfull \hbox (5.25568pt too wide) in paragraph at lines 742--742 [][]\OT1/pcr/m/n/10.95 url_uv[] []<-[] []\OT1/pcr/b/n/10.95 constructNWISURL[][ ]\OT1/pcr/m/n/10.95 (siteNumber,[][]"00060"[][],startDate,endDate,[][]\TS1/pcr/ m/n/10.95 '\OT1/pcr/m/n/10.95 uv\TS1/pcr/m/n/10.95 '[][]\OT1/pcr/m/n/10.95 )[][ @@ -824,20 +832,20 @@ Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [16] -Package color Info: Redefining color shadecolor on input line 742. +Package color Info: Redefining color shadecolor on input line 764. +Package color Info: Redefining color shadecolor on input line 782. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [17] -Package color Info: Redefining color shadecolor on input line 760. +Package color Info: Redefining color shadecolor on input line 840. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [18] -Package color Info: Redefining color shadecolor on input line 818. -Package color Info: Redefining color shadecolor on input line 830. +Package color Info: Redefining color shadecolor on input line 852. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] @@ -851,22 +859,23 @@ Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [21] -Package color Info: Redefining color shadecolor on input line 930. +Package color Info: Redefining color shadecolor on input line 952. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [22] -Package color Info: Redefining color shadecolor on input line 991. -LaTeX Font Info: Try loading font information for OMS+pcr on input line 996. - +Package color Info: Redefining color shadecolor on input line 1013. +LaTeX Font Info: Try loading font information for OMS+pcr on input line 1018 +. ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\omspcr.fd" File: omspcr.fd ) LaTeX Font Info: Font shape `OMS/pcr/m/n' in size <10.95> not available -(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 996. +(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 1018. + -Underfull \vbox (badness 10000) detected at line 998 +Underfull \vbox (badness 10000) detected at line 1020 [] @@ -874,22 +883,22 @@ Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [23] -Package color Info: Redefining color shadecolor on input line 1027. +Package color Info: Redefining color shadecolor on input line 1049. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [24] -Package color Info: Redefining color shadecolor on input line 1052. -Package color Info: Redefining color shadecolor on input line 1072. +Package color Info: Redefining color shadecolor on input line 1074. +Package color Info: Redefining color shadecolor on input line 1094. -Overfull \hbox (44.67563pt too wide) in paragraph at lines 1097--1097 +Overfull \hbox (44.67563pt too wide) in paragraph at lines 1119--1119 [] \OT1/pcr/m/n/10.95 First day of the discharge record is 2000-01-01 and last day is 2013-01-01[] [] -Overfull \hbox (44.67563pt too wide) in paragraph at lines 1097--1097 +Overfull \hbox (44.67563pt too wide) in paragraph at lines 1119--1119 [] \OT1/pcr/m/n/10.95 The first sample is from 2000-01-04 and the last sample i s from 2012-12-18[] [] @@ -899,16 +908,16 @@ Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [25] -Package color Info: Redefining color shadecolor on input line 1128. +Package color Info: Redefining color shadecolor on input line 1150. LaTeX Warning: No positions in optional float specifier. - Default added (so using `tbp') on input line 1134. + Default added (so using `tbp') on input line 1156. <figure/egretEx.pdf, id=374, 505.89pt x 505.89pt> File: figure/egretEx.pdf Graphic file (type pdf) <use figure/egretEx.pdf> -Package pdftex.def Info: figure/egretEx.pdf used on input line 1136. +Package pdftex.def Info: figure/egretEx.pdf used on input line 1158. (pdftex.def) Requested size: 448.07378pt x 448.07928pt. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] @@ -929,14 +938,20 @@ Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [29] -Package color Info: Redefining color shadecolor on input line 1234. -Package color Info: Redefining color shadecolor on input line 1247. - <Rhelp.png, id=403, 433.62pt x 395.22656pt> +Package color Info: Redefining color shadecolor on input line 1256. +Package color Info: Redefining color shadecolor on input line 1269. + +Overfull \hbox (51.24562pt too wide) in paragraph at lines 1280--1280 +[] \OT1/pcr/m/n/10.95 Sample1 <- localSample[!duplicated(localSample[c("DecYea +r","ConcHigh")]),][] + [] + +<Rhelp.png, id=403, 433.62pt x 395.22656pt> File: Rhelp.png Graphic file (type png) <use Rhelp.png> -Package pdftex.def Info: Rhelp.png used on input line 1266. +Package pdftex.def Info: Rhelp.png used on input line 1287. (pdftex.def) Requested size: 433.61894pt x 395.22559pt. -Package color Info: Redefining color shadecolor on input line 1273. +Package color Info: Redefining color shadecolor on input line 1294. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] @@ -948,9 +963,9 @@ Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [31 <D:/LADData/RCode/dataRetrieval/vignettes/Rhelp.png>] -Package color Info: Redefining color shadecolor on input line 1288. -Package color Info: Redefining color shadecolor on input line 1300. -Package color Info: Redefining color shadecolor on input line 1315. +Package color Info: Redefining color shadecolor on input line 1309. +Package color Info: Redefining color shadecolor on input line 1321. +Package color Info: Redefining color shadecolor on input line 1336. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] @@ -958,9 +973,9 @@ Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [32 ] -Package color Info: Redefining color shadecolor on input line 1352. +Package color Info: Redefining color shadecolor on input line 1373. -Overfull \hbox (11.82567pt too wide) in paragraph at lines 1369--1369 +Overfull \hbox (11.82567pt too wide) in paragraph at lines 1390--1390 []\OT1/pcr/m/n/10.95 Suspended sediment concentration (SSC) 1980-10-01 1991-09- 30 3651 mg/l[] [] @@ -972,29 +987,29 @@ Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [33] <table1.png, id=427, 554.07pt x 125.71968pt> File: table1.png Graphic file (type png) <use table1.png> -Package pdftex.def Info: table1.png used on input line 1388. +Package pdftex.def Info: table1.png used on input line 1409. (pdftex.def) Requested size: 554.06865pt x 125.71936pt. Overfull \vbox (21.68121pt too high) has occurred while \output is active [] [34 <D:/LADData/RCode/dataRetrieval/vignettes/table1.png>] -Package atveryend Info: Empty hook `BeforeClearDocument' on input line 1413. -Package atveryend Info: Empty hook `AfterLastShipout' on input line 1413. +Package atveryend Info: Empty hook `BeforeClearDocument' on input line 1434. +Package atveryend Info: Empty hook `AfterLastShipout' on input line 1434. (D:\LADData\RCode\dataRetrieval\vignettes\dataRetrieval.aux) -Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 1413. -Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 1413. +Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 1434. +Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 1434. Package rerunfilecheck Info: File `dataRetrieval.out' has not changed. (rerunfilecheck) Checksum: 0A42302DA34F8DDBBBAD8A2EC505FAF3;1805. ) Here is how much of TeX's memory you used: - 9765 strings out of 494045 - 145928 string characters out of 3145961 - 248171 words of memory out of 3000000 - 12772 multiletter control sequences out of 15000+200000 - 49126 words of font info for 98 fonts, out of 3000000 for 9000 + 9755 strings out of 494045 + 145800 string characters out of 3145961 + 248163 words of memory out of 3000000 + 12764 multiletter control sequences out of 15000+200000 + 45680 words of font info for 91 fonts, out of 3000000 for 9000 715 hyphenation exceptions out of 8191 44i,15n,42p,958b,502s stack positions out of 5000i,500n,10000p,200000b,50000s {C:/Program Files (x86)/MiKTeX 2.9/fonts/enc/dvips/fontname/8r.enc}<C:/Progra @@ -1007,7 +1022,7 @@ les (x86)/MiKTeX 2.9/fonts/type1/urw/courier/ucrb8a.pfb><C:/Program Files (x86) rw/helvetic/uhvr8a.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/urw/times /utmr8a.pfb><C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/urw/times/utmri8a.pf b> -Output written on dataRetrieval.pdf (34 pages, 337808 bytes). +Output written on dataRetrieval.pdf (34 pages, 337209 bytes). PDF statistics: 489 PDF objects out of 1000 (max. 8388607) 85 named destinations out of 1000 (max. 500000) diff --git a/vignettes/dataRetrieval.lot b/vignettes/dataRetrieval.lot index cc647ff2674014ecbf2d5a37029198b27cfb40d1..b3fc11f5e7f66063666043ac55440bbf7e4bceec 100644 --- a/vignettes/dataRetrieval.lot +++ b/vignettes/dataRetrieval.lot @@ -1,7 +1,7 @@ \select@language {american} -\contentsline {table}{\numberline {1}{\ignorespaces Common USGS Parameter Codes\relax }}{6}{table.caption.1} -\contentsline {table}{\numberline {2}{\ignorespaces Commonly used USGS Stat Codes\relax }}{7}{table.caption.2} -\contentsline {table}{\numberline {3}{\ignorespaces Daily mean data availabile at the Choptank River near Greensboro, MD. [Some columns deleted for space considerations]\relax }}{8}{table.caption.3} +\contentsline {table}{\numberline {1}{\ignorespaces Common USGS Parameter Codes\relax }}{5}{table.caption.1} +\contentsline {table}{\numberline {2}{\ignorespaces Commonly used USGS Stat Codes\relax }}{6}{table.caption.2} +\contentsline {table}{\numberline {3}{\ignorespaces Daily mean data availabile at the Choptank River near Greensboro, MD. [Some columns deleted for space considerations]\relax }}{7}{table.caption.3} \contentsline {table}{\numberline {4}{\ignorespaces Daily dataframe\relax }}{18}{table.caption.6} \contentsline {table}{\numberline {5}{\ignorespaces Sample dataframe\relax }}{20}{table.caption.8} \contentsline {table}{\numberline {6}{\ignorespaces Example data\relax }}{21}{table.caption.9} diff --git a/vignettes/dataRetrieval.pdf b/vignettes/dataRetrieval.pdf index b655d7a645a9e5981325ec96fcf5d92a31e69238..51d9e77bc289b99b354da5848c59e47315242c14 100644 Binary files a/vignettes/dataRetrieval.pdf and b/vignettes/dataRetrieval.pdf differ diff --git a/vignettes/dataRetrieval.synctex.gz b/vignettes/dataRetrieval.synctex.gz index b440e6bb3a914c7306db0d056b8ecd1f44fa915e..3fd107c6e1fe5d61cd822fd25ab9321893f82615 100644 Binary files a/vignettes/dataRetrieval.synctex.gz and b/vignettes/dataRetrieval.synctex.gz differ diff --git a/vignettes/dataRetrieval.tex b/vignettes/dataRetrieval.tex index 161ba002a2f5b5a53224043b0761a770471d41ad..7904149aff074199778b139c2784dac09234ca79 100644 --- a/vignettes/dataRetrieval.tex +++ b/vignettes/dataRetrieval.tex @@ -101,7 +101,7 @@ {\thesubsubsection}{0.5em}{} \titlecontents{section} -[2.3em] % adjust left margin +[2em] % adjust left margin {\sffamily} % font formatting {\contentslabel{2.3em}} % section label and offset {\hspace*{-2.3em}} @@ -122,14 +122,14 @@ {\titlerule*[0.25pc]{.}\contentspage} \titlecontents{table} -[-2.3em] % adjust left margin +[0em] % adjust left margin {\sffamily} % font formatting {\textbf{Table}\hspace*{2em} \contentslabel {2em}} % section label and offset {\hspace*{4em}} {\titlerule*[0.25pc]{.}\contentspage} \titlecontents{figure} -[-2.3em] % adjust left margin +[0em] % adjust left margin {\sffamily} % font formatting {\textbf{Figure}\hspace*{2em} \contentslabel {2em}} % section label and offset {\hspace*{4em}} @@ -191,11 +191,15 @@ +\noindent{\huge\textsf{\textbf{The dataRetrieval R package}}} +\noindent\textsf{By Laura De Cicco and Robert Hirsch} -\maketitle +\noindent\textsf{\today} -\newpage +% \maketitle +% +% \newpage \tableofcontents \listoffigures @@ -262,8 +266,8 @@ Once the site-ID is known, the next required input for USGS data retrievals is t Not every station will measure all parameters. A short list of commonly measured parameters is shown in Table \ref{tab:params}. -% latex table generated in R 3.1.0 by xtable 1.7-3 package -% Tue Jul 15 09:39:32 2014 +% latex table generated in R 3.1.1 by xtable 1.7-3 package +% Fri Aug 01 16:04:17 2014 \begin{table}[ht] \caption{Common USGS Parameter Codes} \label{tab:params} @@ -325,8 +329,8 @@ For unit values data (sensor data measured at regular time intervals such as 15 Some common codes are shown in Table \ref{tab:stat}. -% latex table generated in R 3.1.0 by xtable 1.7-3 package -% Tue Jul 15 09:39:33 2014 +% latex table generated in R 3.1.1 by xtable 1.7-3 package +% Fri Aug 01 16:04:18 2014 \begin{table}[ht] \caption{Commonly used USGS Stat Codes} \label{tab:stat} @@ -406,8 +410,8 @@ To discover what data is available for a particular USGS site, including measure \end{knitrout} -% latex table generated in R 3.1.0 by xtable 1.7-3 package -% Tue Jul 15 09:39:34 2014 +% latex table generated in R 3.1.1 by xtable 1.7-3 package +% Fri Aug 01 16:04:19 2014 \begin{table}[ht] \caption{Daily mean data availabile at the Choptank River near Greensboro, MD. [Some columns deleted for space considerations]} \label{tab:gda} @@ -419,7 +423,7 @@ To discover what data is available for a particular USGS site, including measure & Temperature, water & 1988-10-01 & 2012-05-09 & 894 & deg C \\ [5pt] & Temperature, water & 2010-10-01 & 2012-05-09 & 529 & deg C \\ [5pt] & Temperature, water & 2010-10-01 & 2012-05-09 & 529 & deg C \\ - [5pt] & Stream flow, mean. daily & 1948-01-01 & 2014-07-14 & 24302 & ft$^3$/s \\ + [5pt] & Stream flow, mean. daily & 1948-01-01 & 2014-07-31 & 24319 & ft$^3$/s \\ [5pt] & Specific conductance & 2010-10-01 & 2012-05-09 & 527 & uS/cm @25C \\ [5pt] & Specific conductance & 2010-10-01 & 2012-05-09 & 527 & uS/cm @25C \\ [5pt] & Specific conductance & 2010-10-01 & 2012-05-09 & 527 & uS/cm @25C \\ @@ -692,13 +696,31 @@ There are additional water quality data sets available from the Water Quality Da \begin{knitrout} \definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe} \begin{alltt} -\hlcom{# specificCond <- getWQPData('WIDNR_WQX-10032762',} -\hlcom{# 'Specific conductance','','')} -\hlcom{# head(specificCond)} +\hlstd{specificCond} \hlkwb{<-} \hlkwd{getWQPData}\hlstd{(}\hlstr{'WIDNR_WQX-10032762'}\hlstd{,} + \hlstr{'Specific conductance'}\hlstd{,}\hlstr{''}\hlstd{,}\hlstr{''}\hlstd{)} +\hlkwd{head}\hlstd{(specificCond)} \end{alltt} +\begin{verbatim} + dateTime qualifier.Specific conductance +1 2011-02-14 +2 2011-02-17 +3 2011-03-03 +4 2011-03-10 +5 2011-03-29 +6 2011-04-07 + value.Specific conductance +1 1360 +2 1930 +3 1240 +4 1480 +5 1130 +6 1200 +\end{verbatim} \end{kframe} \end{knitrout} +There are + \FloatBarrier %------------------------------------------------------------ \subsection{URL Construction} @@ -773,8 +795,8 @@ There are 4750 data points, and 4750 days. -% latex table generated in R 3.1.0 by xtable 1.7-3 package -% Tue Jul 15 09:39:42 2014 +% latex table generated in R 3.1.1 by xtable 1.7-3 package +% Fri Aug 01 16:04:33 2014 \begin{table}[ht] \caption{Daily dataframe} \label{tab:DailyDF1} @@ -894,8 +916,8 @@ To illustrate how the dataRetrieval package handles a more complex censoring pro -% latex table generated in R 3.1.0 by xtable 1.7-3 package -% Tue Jul 15 09:39:43 2014 +% latex table generated in R 3.1.1 by xtable 1.7-3 package +% Fri Aug 01 16:04:34 2014 \begin{table}[ht] \caption{Example data} \label{tab:exampleComplexQW} @@ -1249,11 +1271,10 @@ To see the raw code for a particular code, type the name of the function, withou \hlstd{removeDuplicates} \end{alltt} \begin{verbatim} -function (localSample = Sample) -{ - Sample1 <- localSample[!duplicated(localSample[c("DecYear", - "ConcHigh")]), ] - return(Sample1) +function(localSample=Sample) { + Sample1 <- localSample[!duplicated(localSample[c("DecYear","ConcHigh")]),] + + return(Sample1) } <environment: namespace:dataRetrieval> \end{verbatim} @@ -1337,7 +1358,7 @@ There are a few steps that are required in order to create a table in a Microsof 5 Suspended sediment discharge 1980-10-01 End Count Units 1 2012-05-09 529 deg C -2 2014-07-14 24302 ft3/s +2 2014-07-31 24319 ft3/s 3 2012-05-09 527 uS/cm @25C 4 1991-09-30 3651 mg/l 5 1991-09-30 3652 tons/day diff --git a/vignettes/dataRetrieval.toc b/vignettes/dataRetrieval.toc index 7109b28de4d8a7d2e2565bfdb7812c404d83f893..f99df5d8d664fb002e519459edeea6301a817f8b 100644 --- a/vignettes/dataRetrieval.toc +++ b/vignettes/dataRetrieval.toc @@ -1,19 +1,19 @@ \select@language {american} -\contentsline {section}{\numberline {1}Introduction to dataRetrieval}{4}{section.1} -\contentsline {section}{\numberline {2}General USGS Web Retrievals}{5}{section.2} -\contentsline {subsection}{\numberline {2.1}Site Information}{7}{subsection.2.1} -\contentsline {subsubsection}{\numberline {2.1.1}getSiteFileData}{7}{subsubsection.2.1.1} -\contentsline {subsubsection}{\numberline {2.1.2}getDataAvailability}{8}{subsubsection.2.1.2} -\contentsline {subsection}{\numberline {2.2}Parameter Information}{9}{subsection.2.2} -\contentsline {subsection}{\numberline {2.3}Daily Values}{9}{subsection.2.3} -\contentsline {subsection}{\numberline {2.4}Unit Values}{13}{subsection.2.4} -\contentsline {subsection}{\numberline {2.5}Water Quality Values}{14}{subsection.2.5} -\contentsline {subsection}{\numberline {2.6}STORET Water Quality Retrievals}{16}{subsection.2.6} -\contentsline {subsection}{\numberline {2.7}URL Construction}{16}{subsection.2.7} -\contentsline {section}{\numberline {3}Data Retrievals Structured For Use In The EGRET Package}{17}{section.3} +\contentsline {section}{\numberline {1}Introduction to dataRetrieval}{3}{section.1} +\contentsline {section}{\numberline {2}General USGS Web Retrievals}{4}{section.2} +\contentsline {subsection}{\numberline {2.1}Site Information}{6}{subsection.2.1} +\contentsline {subsubsection}{\numberline {2.1.1}getSiteFileData}{6}{subsubsection.2.1.1} +\contentsline {subsubsection}{\numberline {2.1.2}getDataAvailability}{7}{subsubsection.2.1.2} +\contentsline {subsection}{\numberline {2.2}Parameter Information}{8}{subsection.2.2} +\contentsline {subsection}{\numberline {2.3}Daily Values}{8}{subsection.2.3} +\contentsline {subsection}{\numberline {2.4}Unit Values}{12}{subsection.2.4} +\contentsline {subsection}{\numberline {2.5}Water Quality Values}{13}{subsection.2.5} +\contentsline {subsection}{\numberline {2.6}STORET Water Quality Retrievals}{15}{subsection.2.6} +\contentsline {subsection}{\numberline {2.7}URL Construction}{15}{subsection.2.7} +\contentsline {section}{\numberline {3}Data Retrievals Structured For Use In The EGRET Package}{16}{section.3} \contentsline {subsection}{\numberline {3.1}INFO Data}{17}{subsection.3.1} \contentsline {subsection}{\numberline {3.2}Daily Data}{17}{subsection.3.2} -\contentsline {subsection}{\numberline {3.3}Sample Data}{19}{subsection.3.3} +\contentsline {subsection}{\numberline {3.3}Sample Data}{18}{subsection.3.3} \contentsline {subsection}{\numberline {3.4}Censored Values: Summation Explanation}{20}{subsection.3.4} \contentsline {subsection}{\numberline {3.5}User-Generated Data Files}{22}{subsection.3.5} \contentsline {subsubsection}{\numberline {3.5.1}getDailyDataFromFile}{22}{subsubsection.3.5.1} diff --git a/vignettes/figure/egretEx.pdf b/vignettes/figure/egretEx.pdf index 902e26ebf2d7681c1e9ffbbd00e2f9e6c9d7764c..de48f66d0d522be33c0d4ad055cd2b0d45fe3639 100644 Binary files a/vignettes/figure/egretEx.pdf and b/vignettes/figure/egretEx.pdf differ diff --git a/vignettes/figure/getNWIStemperaturePlot.pdf b/vignettes/figure/getNWIStemperaturePlot.pdf index 195b377ef223943cc6cc2f12086c850e17e92b09..5680f7aa85f04fd6755126f02a07cd3f3b5a7829 100644 Binary files a/vignettes/figure/getNWIStemperaturePlot.pdf and b/vignettes/figure/getNWIStemperaturePlot.pdf differ diff --git a/vignettes/figure/getQWtemperaturePlot.pdf b/vignettes/figure/getQWtemperaturePlot.pdf index a61cf799470a0b907fa21b3ad5a4273a04b53a7e..a436b0514b04e8a83abdbe0342d1323b7a62d49f 100644 Binary files a/vignettes/figure/getQWtemperaturePlot.pdf and b/vignettes/figure/getQWtemperaturePlot.pdf differ