Filter Matrix by overlaying boolean mask of same size with same output dimensions in R

前端 未结 0 1100
长情又很酷
长情又很酷 2020-12-04 17:53

Given this 5x5 adjacency matrix:

library(matrixcalc)
set.seed(1)
matrix(runif(25, 0, 10), nrow=5, ncol=5) %>% upper.triangle

Resulting in

相关标签:
回答
  • 消灭零回复
提交回复
热议问题