Duncan, 
Thank you. What I meant was that "^" is the only *arithmetic operator* to 
result in a matrix on operating in a data.frame. I understand it's quite old 
code. Also, your explanation makes sense, with the exception of "/" operator, I 
suppose (I could be wrong here). 

Arun


On Thursday, November 14, 2013 at 12:32 AM, Duncan Murdoch wrote:

> 
> It's not just ^ that is missing, the logical relations like <, ==, etc 
> also return matrices. This is very old code (I think from 1999), but I 
> would guess that the reason is that the ^ and < operators always return 
> values of a single type (numeric and logical respectively), whereas the 
> other operators can take mixed type inputs and return mixed type outputs.
> 
> Duncan Murdoch
> 
> > Please let me know if I should be posting this to R-devel list instead.
> > 
> > Thank you very much,
> > Arun
> > 
> > 
> > [[alternative HTML version deleted]]
> > 
> > ______________________________________________
> > R-help@r-project.org (mailto:R-help@r-project.org) mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> > 
> 
> 
> 



        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to