Displaying 2 results from an estimated 2 matches for "zerdiag".
Did you mean:
perldiag
2008 Nov 28
2
question involving loops from intro level R programming class
a. Write a R function zerdiag.v1(m) using loop to output a square matrix
whose diagonal elements are zero and the other elements are filled in by
consecutive integers from 1 to m row-wise.
For example,
zerdiag.v1(6) = [0, 1, 2]
[3, 0, 4]
[5, 6, 0]
This function should have...