-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove legacy ccao::vars_dict attributes from README.Rmd code #4
Remove legacy ccao::vars_dict attributes from README.Rmd code #4
Conversation
var_model_type == "condo" | | ||
`Feature Name` %in% | ||
c("Condominium Building Year Built", "Condominium % Ownership"), | ||
var_name_model != "loc_tax_municipality_name" & ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit hacky here, but without this line the code will decide that Municipality Name
is unique to the condo model simply because the condo municipality feature is called loc_tax_municipality_name
while the equivalent residential model feature is called loc_cook_municipality_name
. Does this seem reasonable to you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a mistake, as both should be using loc_tax_municipality_name
if I recall correctly. We should update the res model feature name to reflect this change. @wrridgeway am I correct here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't think of a reason they should be different. I think you're correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I opened an issue for the res model fix here! ccao-data/model-res-avm#20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeancochrane Looks good! See my tiny nitpicks then this is good to go.
README.Rmd
Outdated
res_params_text <- GET( | ||
"https://raw.githubusercontent.com/ccao-data/model-res-avm/master/params.yaml" | ||
) %>% | ||
content(as = "text") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: No need to do a GET or load httr
, read_yaml()
can ingest directly from a URL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh that's nice! Simplified in 7572d02 👍🏻
var_model_type == "condo" | | ||
`Feature Name` %in% | ||
c("Condominium Building Year Built", "Condominium % Ownership"), | ||
var_name_model != "loc_tax_municipality_name" & ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a mistake, as both should be using loc_tax_municipality_name
if I recall correctly. We should update the res model feature name to reflect this change. @wrridgeway am I correct here?
6eec8f6
to
7572d02
Compare
This PR updates
README.Rmd
along similar lines as the changes in ccao-data/model-res-avm#18 to remove references to legacyccao::vars_dict
attributes that were removed in ccao-data/ccao#6. Instead of getting condo-specific attributes from the vars dict, we now pull the latest residential parameters from themodel-res-avm
repo and diff them against the condo params to generate the column marking condo-specific parameters.