sort_data_frame: Order rows of data frame according to variable combinations.

Description Usage Arguments Value

View source: R/utils.R

Description

Author: Kevin Wright
http://tolstoy.newcastle.edu.au/R/help/04/09/4300.html Some ideas from Andy Liaw
http://tolstoy.newcastle.edu.au/R/help/04/07/1076.html
Use + for ascending, - for decending.
Sorting is left to right in the formula
Useage is either of the following:
sort.data.frame(~Block-Variety,Oats)
sort.data.frame(Oats,~-Variety+Block)

Usage

1
sort_data_frame(form, dat)

Arguments

form

A Formula. See example in Description.

dat

Data frame to be ordered.

Value

Ordered data frame.


zhenkewu/nplcm documentation built on May 28, 2017, 1:43 p.m.