Returns the values along the diag_num-th anti-diagonal of trg,
starting from the bottom-left.
Usage
diag_reader(trg, diag_num = nrow(trg))Examples
trg <- matrix(1:9, nrow = 3)
diag_reader(trg)
#> [1] 3 5 7
diag_reader(trg, diag_num = 2)
#> [1] 2 4