I know you are using base functions like `all.equal()` to do the underlying checks, but it would be nice to have a way to check levels in factor variables without getting the ordering precisely right. See https://github.com/dsscollection/factor-mgmt/blob/master/analysis/working_with_factors.Rnw#L394 for an example of what I'm talking about. In essence, I wish that I could run ``` expect_equivalent(c("Male", "Female"), c("Female", "Male")) ``` and get a TRUE. Maybe this is something more appropriate for https://github.com/hadley/forcats ? cc @nicholasjhorton
I know you are using base functions like
all.equal()to do the underlying checks, but it would be nice to have a way to check levels in factor variables without getting the ordering precisely right. See https://github.com/dsscollection/factor-mgmt/blob/master/analysis/working_with_factors.Rnw#L394 for an example of what I'm talking about. In essence, I wish that I could runand get a TRUE.
Maybe this is something more appropriate for https://github.com/hadley/forcats ?
cc @nicholasjhorton