Skip to content

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

@Mark-Bergn

Description

@Mark-Bergn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions