2021年3月30日星期二

Get unique pairs of row names and column names based on data table entries

Here is my data table:

    A    B    C  A   1   0.8  0.2  B  0.8   1   0.3  C  0.2  0.3   1  

I am trying to get the unique pairs of row names and column names based on the entries. For example, if I am looking at > 0.5, my output would be:

A B 0.8  

If I am looking at < 0.5, my output would be:

B C 0.3  A C 0.2  
https://stackoverflow.com/questions/66880253/get-unique-pairs-of-row-names-and-column-names-based-on-data-table-entries March 31, 2021 at 08:56AM

没有评论:

发表评论