Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
-Inf を含む値の行列があります。-Inf より大きい最小値を見つけるにはどうすればよいですか?
こちらです:
foo <- matrix(c(1,2,-Inf,3),nrow=2,ncol=2) min(foo[foo>-Inf]) [1] 1
min( foo[ is.finite(foo) ] #...