Closed hadley closed 8 years ago
Thank you for taking care of it, Hadley. I confirm that it is not a bug in tidyr, but a possible new behaviour. Previously a call to gather() was generating a factor and now it generates a character vector, and for other functions that variable was needed to be a factor.
Anyway, I have added a check to be sure that a output is the factor. Solved in cdd511e.
Oh in that case you can use the new factor_key = TRUE
argument
Great, thank you for the tip. BTW, nice feature. It is very useful. However, I think I will stick with the "manual" approach of checking at the very end that the variable is a factor, given that there are many intermediate transformations involved.
Could you please check to see if this is a new bug in tidyr?