search for: str_order

Displaying 2 results from an estimated 2 matches for "str_order".

Did you mean: ltp_order
2017 Oct 21
1
split() - unexpected sorting of results
Hello, In order to solve that problem of sorting numerics made characters there is package stringr, functions str_sort and str_order. library(stringr) set.seed(2447) x <- sample(11L) sort(as.character(x)) [1] "1" "10" "11" "2" "3" "4" "5" "6" "7" "8" "9" str_sort(as.character(x), numeric = TRUE) [1] "...
2017 Oct 20
2
split() - unexpected sorting of results
Thanks, for the explanation. Still, I think this is surprising bahaviour which might be handled better. Best, Peter Am 20.10.2017 9:49 nachm. schrieb "I?aki ?car" <i.ucar86 at gmail.com>: > Hi Peter, > > 2017-10-20 21:33 GMT+02:00 Peter Meissner <retep.meissner at gmail.com>: > > Hey, > > > > I found this - for me - quite surprising and puzzling