@@ -21239,10 +21239,10 @@ test(2321.5, DT <- data.table(a=1:2, cbind(b=3:4)), data.table(a=1:2, b=3:4))
2123921239test(2321.6, names(DT), names(data.frame(a=1:2, cbind(b=3:4))))
2124021240
2124121241# New fctr() helper: like factor() but retaining order by default #4837
21242- test(2240 .01, levels(fctr(c("b","a","c"))), c("b","a","c"))
21243- test(2240 .02, levels(fctr(c(3,1,2))), c("3","1","2"))
21244- test(2240 .11, levels(fctr(c("b","a","c"), rev=TRUE)), c("c","a","b"))
21245- test(2240 .12, levels(fctr(c("b","a","c"), rev=NA)), error="TRUE or FALSE")
21246- test(2240 .21, levels(fctr(c("b","a","c"), sort=TRUE)), c("a","b","c"))
21247- test(2240 .22, levels(fctr(c("b","a","c"), sort=NA)), error="TRUE or FALSE")
21248- test(2240 .31, levels(fctr(c("b","a","c"), rev=TRUE, sort=TRUE)), c("c","b","a"))
21242+ test(2322 .01, levels(fctr(c("b","a","c"))), c("b","a","c"))
21243+ test(2322 .02, levels(fctr(c(3,1,2))), c("3","1","2"))
21244+ test(2322 .11, levels(fctr(c("b","a","c"), rev=TRUE)), c("c","a","b"))
21245+ test(2322 .12, levels(fctr(c("b","a","c"), rev=NA)), error="TRUE or FALSE")
21246+ test(2322 .21, levels(fctr(c("b","a","c"), sort=TRUE)), c("a","b","c"))
21247+ test(2322 .22, levels(fctr(c("b","a","c"), sort=NA)), error="TRUE or FALSE")
21248+ test(2322 .31, levels(fctr(c("b","a","c"), rev=TRUE, sort=TRUE)), c("c","b","a"))
0 commit comments