powered by
fliplr(object) flipud(object)
object
rot90
fliplr(1:9) flipud(1:9) # same as previous since vectors have no orientation in R fliplr(matrix(1:9, 3, 3, byrow=TRUE)) flipud(matrix(1:9, 3, 3, byrow=TRUE))
Run the code above in your browser using DataLab