Creates an upper triangular square matrix from a vector.
triang( v, n )
vector
desired dimension of the returned square matrix
veclipos.
veclipos
# NOT RUN { v <- c( 1:5 ) triang( v, 3 ) # }
Run the code above in your browser using DataCamp Workspace