[R] outer function and boolean operators
Uwe Ligges
ligges at statistik.uni-dortmund.de
Tue Sep 27 16:26:06 CEST 2005
Jarrod Hadfield wrote:
> Hi,
>
> Could anyone tell me the name (if there is one) of the class of
> matrices (z) formed by:
>
> a) z<-outer(x,y, "==")
>
> and
>
> b) z<-outer(x,y, "!=")
Yes, it is "matrix":
class(outer(x,y, "=="))
[1] "matrix"
in this case of "logical" values:
> mode(outer(x,y, "=="))
[1] "logical"
Uwe Ligges
> Thanks in advance,
>
> Jarrod.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list