Learn R Programming

PMmisc (version 0.1.0)

fsortcol: Sort a data frame by a column

Description

Sort a data frame by a column of choice. The column of choice is specified by the number of the column.

Usage

fsortcol(x,n,dec)

Arguments

x

:a data frame

n

:number column to sort

dec

:the order of sorting, default set to TRUE

Examples

Run this code
# NOT RUN {
fsortcol(mtcars,1,dec = TRUE)
# }

Run the code above in your browser using DataLab