bcgov / bcgov/envair

get_captures error for 2022 sparwood centennial square PM data

Open
#25 4 comments 0 reactions 0 assignees View on GitHub
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:
![2024-01-19 get_captures](https://github.com/bcgov/envair/assets/24443567/6f571944-a51b-445e-8f29-4325ee5c8445)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.