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
How do I do this operation est in R?
I want the resulting matrix.
The text was updated successfully, but these errors were encountered:
I think this is what you want.
A = matrix(1:10, 5, 2) print(A) fn = function(x) x^2 B = t(apply(A, 1, fn)) # this is what you want print(B)
Sorry, something went wrong.
Yes, sure.
I just do not find this very readable, especially because of t()
Maybe we should have a REALLY nice family of all apply-variants we want in HELL?
No branches or pull requests
How do I do this operation est in R?
I want the resulting matrix.
The text was updated successfully, but these errors were encountered: