Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flip function #11

Open
hadley opened this issue Dec 31, 2011 · 2 comments
Open

Flip function #11

hadley opened this issue Dec 31, 2011 · 2 comments

Comments

@hadley
Copy link
Member

hadley commented Dec 31, 2011

Should be able to flip vertically or horizontally.

@hadley
Copy link
Member Author

hadley commented Dec 31, 2011

Is there a base equivalent of this? I guess you normally just use reverse indexing - but this would still be useful. (And would just be implemented in terms of matrix operations).

@kohske
Copy link
Contributor

kohske commented Jan 1, 2012

I never find this in a base matrix. Yes, reverse indexing will do this work in the case of base matrix.
In the case of gtable, a little bit more work are required (e.g., modification in layout data.frame).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants