Learn R Programming

MAMA (version 2.1.0)

flip: Function to flip data frames

Description

Function reverses the order of rows. It is simmilar to function rev, but designed for rows of a data frame, matrix.

Usage

flip(order)

Arguments

order
Data frame, Matrix

Value

  • Same data frame or matrix with reversed rows

See Also

rev

Examples

Run this code
A<-matrix(1:24, ncol=4);A
 flip(A)

Run the code above in your browser using DataLab