Skip to content
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

Note on input data (voter.file) columns names #156

Open
Mark-Bergn opened this issue Sep 23, 2024 · 2 comments
Open

Note on input data (voter.file) columns names #156

Mark-Bergn opened this issue Sep 23, 2024 · 2 comments

Comments

@Mark-Bergn
Copy link

Hello, I was running into an issue where I could not run the predict_race() function. What triggered the error was the line of code "colMeans(df[, grep("c_", names(df), value = TRUE)], na.rm = TRUE)" in the merge_names function. I realized that I had a column of "Associate IDs" (named assoc_id) which it was trying to include in the colMeans function. I'm not sure if there is a good solution but I think adding a note or warning to be sure your input data set does not include any columns with "c_" in their name would be helpful.

@dwillis
Copy link

dwillis commented Oct 7, 2024

Yeah, would like to second documenting this.

@1beb
Copy link
Collaborator

1beb commented Oct 15, 2024

Thanks for catching that. I'm thinking we might want to limit the expression so it only finds ^c_ instead of anything matching c_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants