Matrix transposition: Difference between revisions

(→‎{{header|Perl 6}}: Added a more concise solution and output)
Line 1,432:
 
=={{header|R}}==
<lang R>b <- c(1,2,3,4,:5)
m <- matrix(c(b, b^2, b^3, b^4), 5, 4)
print(m)
Anonymous user