-
Notifications
You must be signed in to change notification settings - Fork 23
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
Weird add_constr_custom()
behaviors
#173
Milestone
Comments
|
Can you elaborate on the 2nd issue? Shouldn't accessing indices that don't exist cause problems? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
::
, you get the following warning.Workaround: Define the required function in the global environment before using it, like
colMins <- matrixStats::colMins
before declaring the custom constraint.redist_map
s after filtering fail if you rely on the district number and the numbers are not sequential. On an example Iowa map, filter out district 2 and then try to subset to access district2
, causing a NaN issue.Workaround: renumber the
existing_col
when you create the mapThe text was updated successfully, but these errors were encountered: