I am using the gender package in R and unfortunately the gender function in that package returns blank tibbles when it cannot classify a name as male or female.
Is there a "purrr"- style way to apply the gender function so that empty tibbles of size n x m are replaced by NAs of size n x m in my output, so as to keep the row-size of the inputs and outputs to the gender function equal?
I would like to find a solution that does not involve writing a wrapper for the gender function (if possible).