Skip to content
Prev 31530 / 63424 Next

Semantics of sequences in R

On Mon, 23 Feb 2009 08:52:05 +0100
Wacek Kusnierczyk <Waclaw.Marcin.Kusnierczyk at idi.ntnu.no> wrote:

            
I neither said nor meant this and I do not see how what I said could be
interpreted in such a way.  I was just commenting to Stavros that the
example he picked, hoping that it would not break existing code, was
actually a bad one which potentially will break a lot (?) of existing
code.

Also, until reading Patrick Burns' "The R Inferno" I was not aware of
sort.list.  That function had not registered with me since I hardly
used it.  And I also have no need of calling sort() on lists.  For em a
lists is a flexible enough data structure such that defining a sort()
command for them makes no sense; it could only work in very specific
circumstances.
I do not remember the exact context of Rolf's comments, but I believe
he was talking in a more general sense and not in technical terms.  I
find it perfectly valid, even when talking about R, to say something
like "vectors are stored as a list of numbers in consecutive memory
locations in memory".  Clearly, in a phrase like this, we are not
talking about "vectors" and "list" as defined by the "R Language
Definition" or "R Internals", or what functions like is.vector(),
is.list() &c return for various R objects.

BTW, as I mentioned once before, you might want to consider to lose
these chips on your shoulders.
You will have to take that up with the designers of sort.list.
I usually learn a lot when I get confused about some issues/concept.
Confusion forces one to sit down, think deeply and, thus, gain some
understanding.  So I am not so much concerned with new users being
confused.  It is, of course, a problem if the new user never comes out
of his or her confusion.

Cheers,

	Berwin