Skip to content
Prev 31513 / 63424 Next

Semantics of sequences in R

On Sun, Feb 22, 2009 at 4:12 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
OK.
Yes, I wasn't questioning that.  This started out as an exploration of
Rolf's claim that "vectors can be considered to be lists", which I
think the table shows pretty clearly not to be true.  He did qualify
the claim with "At a certain level.", but I don't know what that level
is....
tried to learn R, I can tell you that these idiosyncracies make
learning the system more difficult.  A "pretty-looking matrix" is a
reflection of an orthogonal design, which is generally considered to
be a good thing. Many of the missing operations are perfectly
meaningful and useful.
I agree that the pairlist cases are the least interesting.
Yes, sorry, older draft....
In many cases, the orthogonal design is pretty straightforward.  And
in the cases where the operation is currently an error (e.g.
sort(list(...))), I'd hope that wouldn't break existing code. There
are certainly cases which would be hard to change without breaking
existing code....
I understand this principle quite well, having been a contributor to
other similar projects.  I was simply starting the discussion.  After
all, if the core group disagrees that the functions should be made
more orthogonal, it is a waste of my time to submit code.
I have already suggested code changes in some (pretty trivial) cases
-- see r-help Feb 6, 2009 6:17 PM "Operations on difftime (abs, /, c)"
-- but perhaps r-help was the wrong place to send them.  I will
forward to r-devel.  And I will be happy to work on some of the
consistency issues I've mentioned here.

             -s