[Rd] slight inconsistency in <Factorize>( <logical matrix> )

Martin Maechler maechler at stat.math.ethz.ch
Mon Jul 20 10:32:14 CEST 2009

We have a very slight inconsistency in the treatment of logical
matrices with our three major factorizations:

qr() coerces to numeric , whereas
svd() and eigen() give an error.

I'm proposing to change  svd() and eigen() such that they also
treat a logical matrix as if it was 0-1 ,  analogously to all
other arithmetic operations.

Martin Maechler, R Core Team & ETH Zurich

More information about the R-devel mailing list