Timeline for Order columns in R by substring
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 28, 2015 at 22:03 | vote | accept | MERose | ||
Dec 28, 2015 at 18:44 | history | edited | coatless | CC BY-SA 3.0 |
Minor touch up
|
Dec 28, 2015 at 18:35 | comment | added | coatless | Yes, since the ordering is custom and, thus, requires a custom mapping of the strings to numbers. I've updated my response with the additional information. @MERose | |
Dec 28, 2015 at 18:33 | history | edited | coatless | CC BY-SA 3.0 |
Added new sorting order technique to address the requesters clarification
|
Dec 28, 2015 at 11:03 | comment | added | MERose |
Your example looks very good. It makes use of the inverted alphabetical order. I must admit my example is also inverted alphabetical order, which I didnot intend. How do I achieve an ordering of q$X2 like c("c", "a", "b") ? I presume, turning q$X2 into a factor is the way to go, isn't?
|
|
Dec 28, 2015 at 0:24 | history | answered | coatless | CC BY-SA 3.0 |