Skip to content
Prev 30419 / 398513 Next

Transforming matrix

On Thu, 10 Apr 2003, Ramon Diaz wrote:

            
That maps TRUE to 1 and FALSE to 0, and I read the request as for the 
reverse.

ifelse(m1, 0, 1) is probably the most transparent way.