[R] comparing matrices

Esmail esmail.js at gmail.com
Sun Apr 26 19:33:01 CEST 2009


baptiste auguie wrote:
> I'm not sure I'm following you but have you tried,
> 
> identical(matrix(c(1,1,1,1),ncol=2), matrix(c(1,1,1,1),ncol=2))
> 
> ?all.equal
> ?isTRUE
> ?identical
> 
> and possibly the compare package,
> 
> compare(matrix(c(1,1,1,1),ncol=2),matrix(c(1,1,1,1),ncol=2))
> 
> 
> HTH,
> 
> baptiste

Hi Babtiste,

Thanks for pointing out the various options that exist. R is
a very rich language indeed and it's good to know how to accomplish
tasks in various ways.

Cheers,
Esmail




More information about the R-help mailing list