RosettaCodeData/Task/Optional-parameters/R/optional-parameters.r

8 lines
146 B
R
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
tablesort <- function(x, ordering="lexicographic", column=1, reverse=false)
{
# Implementation
}
# Usage is e.g.
tablesort(mytable, column=3)