☰
Debian Codegraph
@
1.13.0+dfsg-1
/
/
inst
/
app_template
/
R
/
example.R
☽
☼
inst/app_template/R/example.R
code
plain
raw
MIT
2013-2025 Posit Software, PBC; Joe Cheng, JJ Allaire, Yihui Xie, Jonathan McPherson,; RStudio, jQuery Foundation, jQuery contributors,; R Core Team
debian/copyright
1
# Given a numeric vector, convert to strings, sort, and convert back to
2
# numeric.
3
lexical_sort <- function(x) {
4
as.numeric(sort(as.character(x)))
5
}