get_captures error for 2022 sparwood centennial square PM data
- Dominant language
- R
- Stars
- 8
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
`envair` 0.4.0.600
R version 4.3.1
Trying to use `get_captures` on a dataframe retrieved from an `importBC_data` call:
```
data<-envair::importBC_data(parameter_or_station = c("pm25",
"pm10"),
years=2022,
use_openairformat = FALSE) %>%
dplyr::filter(STATION_NAME=="Sparwood Centennial Square" &
lubridate::year(DATE_PST)==2022)
captures<-envair::get_captures(param=data,
years = 2022)
```
Produces this error:

Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue using the provided R example with importBC_data and get_captures for the 2022 Sparwood Centennial Square PM data. First capture the full error text rather than relying on the screenshot, then inspect how get_captures handles the dataframe returned by importBC_data. Done means the example completes without error and returns captures for the requested data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100