View source: R/disambr_utils.r
get_upper_triangle_index | R Documentation |
n
by n
matrixinspired from https://math.stackexchange.com/questions/2134011 but modified so index starts from 1 as the original answer was for index starting from 0
get_upper_triangle_index(i, j, n)
i |
row index |
j |
column index |
n |
the size of squared matrix |
An index as integer number. Index starts from 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.