RosettaCodeData/Task/Optional-parameters/R/optional-parameters.r
2023-07-01 13:44:08 -04:00

7 lines
146 B
R

tablesort <- function(x, ordering="lexicographic", column=1, reverse=false)
{
# Implementation
}
# Usage is e.g.
tablesort(mytable, column=3)