[R] Coercing Logical array to Numeric array

Mitra, Sumona sumona.mitra at kcl.ac.uk
Wed Jul 20 13:14:23 CEST 2011


Dear all,

Coercing a logical vector to a numeric one is easy. The as.numeric function is used. However what do we use when we have a matrix or an array?

Sumona


More information about the R-help mailing list