You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When QualityControlID = 1 in munge_bbs_data, which is the default, I am still getting results with 0 in the QualityControlID column.
I checked the code and the issue is that the argument and column have the same name and inside the dplyr filter function it looks first in the context of the data frame so it does not use the value of QualityControlID = 1 that was supplied as an argument but rather the column in the data frame.
I will attempt to make a pull request now since it is an easy fix!
library(bbsAssistant)
library(dplyr)
# Set parameters for scriptstart_yr<-1991end_yr<-2023# Get the BBS data# downloads the data the first time and will import it if already downloaded.bbs_raw<- grab_bbs_data()
obs_ON_1991<- munge_bbs_data(
bbs_raw,
states=region_codes %>% filter(State=="ontario") %>% pull(StateNum),
zero.fill=FALSE,
year.range=start_yr:end_yr,
keep.stop.level.data=TRUE
)
The text was updated successfully, but these errors were encountered:
see24
added a commit
to see24/bbsAssistant
that referenced
this issue
Jul 4, 2023
When
QualityControlID = 1
inmunge_bbs_data
, which is the default, I am still getting results with 0 in theQualityControlID
column.I checked the code and the issue is that the argument and column have the same name and inside the dplyr filter function it looks first in the context of the data frame so it does not use the value of
QualityControlID = 1
that was supplied as an argument but rather the column in the data frame.I will attempt to make a pull request now since it is an easy fix!
The text was updated successfully, but these errors were encountered: