powered by
copy.tri(x, from = "lower")
x <- matrix(1:9, nrow = 3) print(x) copy.tri(x)
Run the code above in your browser using DataLab