inst/realtest/sort-stringx.R

x <- c("2", "1", "10", NA, "10")
E(sort(x, numeric=TRUE), c("1", "2", "10", "10"))
E(sort(x, numeric=TRUE, na.last=TRUE), c("1", "2", "10", "10", NA))
E(xtfrm2(x, numeric=TRUE), c(2L, 1L, 3L, NA, 3L))
E(xtfrm2(as.integer(x)), as.integer(x))
E(xtfrm(as.integer(x)), as.integer(x))
gagolews/stringx documentation built on Jan. 15, 2025, 9:46 p.m.