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

8 lines
146 B
R
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
tablesort <- function(x, ordering="lexicographic", column=1, reverse=false)
{
# Implementation
}
# Usage is e.g.
tablesort(mytable, column=3)