header_tag.html

Skip to contents

Uses attributes from the WQP functions to create data citations.

Usage

create_WQP_bib(x)

Arguments

x

Any data returned from an NWIS function, must include "queryTime" and "url" attributes, which should come with the data by default.

Value

bibentry object to use for citing the data.

Details

See ?bibentry for more information.

Examples

# \donttest{
WQPData <- readWQPqw("USGS-05288705",
                     parameterCd = "00300")
#> GET: https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&pCode=00300&mimeType=csv
#> NEWS: Data does not include USGS data newer than March 11, 2024. More details:
#> https://doi-usgs.github.io/dataRetrieval/articles/Status.html
wqp_citation <- create_WQP_bib(WQPData)
wqp_citation
#> National Water Quality Monitoring Council (2024). _Water Quality
#> Portal_. doi:10.5066/P9QRKUVJ <https://doi.org/10.5066/P9QRKUVJ>,
#> Accessed Nov 05, 2024,
#> <https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&pCode=00300&mimeType=csv>.

print(wqp_citation, style = "Bibtex")
#> @Manual{,
#>   title = {Water Quality Portal},
#>   author = {{National Water Quality Monitoring Council}},
#>   doi = {10.5066/P9QRKUVJ},
#>   note = {Accessed Nov 05, 2024},
#>   year = {2024},
#>   url = {https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&pCode=00300&mimeType=csv},
#> }
print(wqp_citation, style = "citation")
#> National Water Quality Monitoring Council, 2024, Water Quality Portal,
#> accessed 11, 05, 2024,
#> https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&pCode=00300&mimeType=csv,
#> https://doi.org/10.5066/P9QRKUVJ.
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {Water Quality Portal},
#>     author = {{National Water Quality Monitoring Council}},
#>     doi = {10.5066/P9QRKUVJ},
#>     note = {Accessed Nov 05, 2024},
#>     year = {2024},
#>     url = {https://www.waterqualitydata.us/data/Result/search?siteid=USGS-05288705&pCode=00300&mimeType=csv},
#>   }
# }