Reversal of cell values

hi @naja

It more easy to help with a REProductible EXample. see here:

I test with an example of 2*2 numeric matrix. I've just done 1 - mymatrix

 
mat <- matrix(c(0.9,0.7,0.3,0.4), nrow = 2)
mat
#>      [,1] [,2]
#> [1,]  0.9  0.3
#> [2,]  0.7  0.4
1-mat
#>      [,1] [,2]
#> [1,]  0.1  0.7
#> [2,]  0.3  0.6

Created on 2019-12-13 by the reprex package (v0.3.0)

Hope it help

2 Likes