Hopefully this is a more robust solution than using grepl(). The column names of the factor matrix were all originally expressions, so re-parsing them should always work. And I'm fairly certain the edge cases of expr_contains() are handled nicely.
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Closes #174 Closes #173
Hopefully this is a more robust solution than using
grepl()
. The column names of the factor matrix were all originally expressions, so re-parsing them should always work. And I'm fairly certain the edge cases ofexpr_contains()
are handled nicely.