pfmc-assessments/nwfscSurvey

Evaluate how and when `codify_sex()` works

Opened this issue · 0 comments

codify_sex() is currently used with the get_expanded_comps() function and it performs as expected. However, when codify_sex() is added to get_input_n() it sometimes causes issues. It seems to work get_input_n() is called on it is on its own, but when an error arises when running the get_expanded_comps() function which also uses codify_sex(). It seems that this double usage is causing issues. Currently, the code removed codify_sex() from get_input_n(), allowing the code to work without errors; however, the code would benefit from this function's consistent use to standardize sex categorization.