[R] comparing matrices

Esmail esmail.js at gmail.com
Sun Apr 26 19:34:54 CEST 2009


David Winsemius wrote:
> 
> 
>  > identical( matrix((1:4), ncol=2), matrix((1:4), nrow=2))
> [1] TRUE
>  > identical( matrix((1:4), ncol=2), matrix((2:5), nrow=2))
> [1] FALSE

Thanks David, much appreciated.

Esmail




More information about the R-help mailing list