Closed Chris-Larkin closed 12 months ago
@mdblocker
This one I want to work on with you. I also want to include an option to return unmatched vs. a hard failure.
This is now in the dev branch and will be released to CRAN in 3.0. See #120
Amazing @1beb!
Hi, love the idea of this package although have had trouble getting it to work. When I pass my data through to the function, it returns an error at some point and then the entire operation breaks. It'd be great if
wru::predict_race()
could return as many predicted rows as possible, and then leave those it can't predict (for whatever reason) blank. See the data + code below for an minimally-reproducible example:Which I feed into:
Which returns this output/error:
I haven't dug much into this specific tract, but it seems to me that a more sensible output would be to just return predictions for those geographies it's possible to do so for, and otherwise leave that row without any prediction. The current default seems to be that if one row doesn't match then i can't get predictions for any row. Seeing as there's no way of knowing which rows will match and which will not before making the call to
wru
, this leaves the user in the unenviable position of having to attempt each row individually.Just some thoughts! I love the package and hope I can get it to work for my study. Thank you