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