Skip to content
Prev 281162 / 398503 Next

Base function for flipping matrices

Hadley,
 Presumably for fliplr you meant ncol(x)

fliplr <- function(x) x[, ncol(x):1]

Bill
On Dec 31, 2011, at 9:08 AM, Hadley Wickham wrote:

            
William Revelle		           http://personality-project.org/revelle.html
Professor			           http://personality-project.org
Department of Psychology   http://www.wcas.northwestern.edu/psych/
Northwestern University	   http://www.northwestern.edu/
Use R for psychology             http://personality-project.org/r
It is 6 minutes to midnight	   http://www.thebulletin.org