Closed aridf closed 2 years ago
census.geo
is currently not optional. There is no way to specify a custom census.geo presently, although it might be possible to allow for a "passthrough" of a specific variable that is contained in both voter.file and census.data, if that's what you were thinking. Adding a census geography is trivial but time consuming. Currently supported are: county, tract, block group (in hwru branch), block and place. If you have a psuedo-reprex (an example of input/output) I can put some thought into it.
Perhaps I am misunderstanding the docs here. The description of the
census.geo
argument indicates it is optional, and that users can instead pass in acensus.data
object so the census API need not be called. However, it seems thecensus.geo
option is not optional in the function definition (it has no default value), and the source code also indicates that thepredict_race
function will stop if no valid value forcensus.geo
is passed. Is there actually a way to input custom geographic information here?