Matrix transposition: Difference between revisions
Content added Content deleted
(→{{header|Perl 6}}: Added a more concise solution and output) |
|||
Line 1,432: | Line 1,432: | ||
=={{header|R}}== |
=={{header|R}}== |
||
<lang R>b <- |
<lang R>b <- 1:5 |
||
m <- matrix(c(b, b^2, b^3, b^4), 5, 4) |
m <- matrix(c(b, b^2, b^3, b^4), 5, 4) |
||
print(m) |
print(m) |