[R] error-prone feature?

Khamenia, Valery V.Khamenia at BioVisioN.de
Thu May 15 09:39:20 CEST 2003


Hi All,

  while looking why the cclust(cclust) doesn't work for 1-dimensional data,
  I've found unpleasant behavior in semantics of R. Indeed:

    is.matrix(matrix(cbind(c(1,2,3,4)),ncol=2)[1:2,])  == TRUE

  but:

    is.matrix(matrix(c(1,2))[1:2,]) == FALSE
  

kind regards,
Valery A.Khamenya
---------------------------------------------------------------------------
Bioinformatics Department
BioVisioN AG, Hannover




More information about the R-help mailing list