We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
m <- matrix(1:9, nrow=3) class( m[1:2, ] ) ## matrix! class( m[1, ] ) ## integer!
Useful when you're expecting it, the cause of difficult to trace bugs when you're not. The terribly wonderful syntax
m[1, , drop=FALSE]
allows you to avoid dimension dropping explicitly.
The text was updated successfully, but these errors were encountered:
Similarily, why apply is evil (always drops dimensions if the function applied returns a scalar*)
apply
*vector of length one
Sorry, something went wrong.
No branches or pull requests
Useful when you're expecting it, the cause of difficult to trace bugs when you're not. The terribly wonderful syntax
allows you to avoid dimension dropping explicitly.
The text was updated successfully, but these errors were encountered: