You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can take advantage of the fact that factors already get sorted correctly, and just make the numerics into factors upstream of that.
For the 2-way issue, I think this could be fixed with by adding something like if(is.numeric(tabl[[2]]) { tabl[[2]] <- ordered(tabl[[2]], levels = tabl[[2]])) } at the top of the block here. Then it would be treated as an ordered factor, taking advantage of that existing code from that point out.
I marked this "good first issue" and am hopeful someone newer to R development could take a shot at it, especially with these pointers above. It will also require tests to make sure the fix works, I can assist there if needed.
Bug
Tabyl (with 2 arguments) sorts the column of the table by the integer 'name' not the number. I want the opposite, of course.
Brief description of the problem
Yields:
Like a prison inmate, I'm an integer, sort me by a number, not a name please!
The text was updated successfully, but these errors were encountered: