В Fri, 15 Apr 2022 14:53:36 +0000 Eliza Botto <eliza_bo...@outlook.com> пишет:
> sort(qq) command will execute the sorted values of this matrix as (1 > 2 3 4 5 6). Instead of values, I want the row and column names of > these sorted values as (1,1), (1,2), (1,3), (2,1), (2,2), (2,3) Combine order() to get the sorting permutation with arrayInd() to get row and column indices from absolute indices with colnames() and rownames() to get the names themselves. -- Best regards, Ivan ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.