Open DonnaHaga opened 7 months ago
envair version: 0.4.0.800
Hi Donna, get_captures() has been superseded by the function get_data_completeness().
Try the following codes: capture <- envair :: get_data_completeness(param = 'PM2.5', years = 2022)
names(capture) [1] "annual_hour" "annual_days" "quarter_days" "quarter_q2+q3"
There are four tables under "capture", you can choose one and filter it by station_name.
capture$annual_hour %>% dplyr :: filter(station_name == "Sparwood Centennial Square")
Note: get_captures() is now working in the latest version envair v. 0.4.0.900. It allows to retrieve data captures based on parameter and year, then filter by station. E.g. capture_Sparwood_2022 <- envair :: get_captures('PM2.5', 2022) %>% dplyr::filter(station_name == "Sparwood Centennial Square")
Thanks @ZoeGao218. I tried the above and got the same error as for #24. envair
0.4.2.100
envair
0.4.0.600 R version 4.3.1Trying to use
get_captures
on a dataframe retrieved from animportBC_data
call:Produces this error: