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 descending.
Sorting is left to right in the formula
Usage 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.


oslerinhealth/baker documentation built on May 22, 2021, 12:05 p.m.