Search results

  1. derksheng

    Question about which() with matrices to delete certain stuff

    Let's say I have a {100 x 100} matrix (call it "A") and there's 5 Inf in them. My goal is to replace them with NAs. I can go which(A==Inf) and this might give me something like [1] 4747 4788 ... 5926. How can I use _this_ data to replace the Inf with NAs? If course I can use which() with...