Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Create an interaction variable from two or more factors #136
I do this a lot but don't see a function in
It's straightforward, but base R
I don't know if all
It would be inconsistent with the rest of forcats to take a data frame as first argument, but I think you easily eliminate that.
I'm not sure about the name — I'd prefer something that implied that you were getting the Cartesian product of the factor? I think you also need a