Skip to content

Error combining dfs with columns of different formats #861

@ehinman

Description

@ehinman

Describe the bug
I am trying to download all monitoring locations in Washington and I'm running into an error when the function tries to combine multiple dfs into one.

To Reproduce

library(dataRetrieval)
wa_sites <- read_waterdata_monitoring_location(state_name = "Washington")

Expected behavior
Returns a single df

Screenshots

Requesting:
https://api.waterdata.usgs.gov/ogcapi/v0/collections/monitoring-locations/items?f=json&lang=en-US&state_name=Washington&limit=50000
Remaining requests this hour:996 s
Remaining requests this hour:995 s
Error in `vctrs::list_unchop()`:
! Can't combine `x[[1]]$drainage_area` <double> and `x[[2]]$drainage_area` <character>.
Run `rlang::last_trace()` to see where the error occurred.

Session Info
Please include your session info:

sessionInfo()
#OR preferred:
devtools::session_info()
─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.5.2 (2025-10-31)
 os       macOS Sequoia 15.7.3
 system   aarch64, darwin20
 ui       RStudio
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       America/Chicago
 date     2026-02-13
 rstudio  2026.01.0+392 Apple Blossom (desktop)
 pandoc   3.6.3 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/aarch64/ (via rmarkdown)
 quarto   1.8.25 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/quarto

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions