Blog Archives

Design Flaws in R #3 — Zero Subscripts

September 21, 2008
By
Design Flaws in R #3 — Zero Subscripts

Unlike the two design flaws I posted about before (here, here, and also here), where one could at least see a reason for the design decision, even if it was unwise, this design flaw is just  incomprehensible.  For no reason at all that I can see, R allows one to use zero as a subscript

Read more »

R Design Flaws #1 and #2: A Solution to Both?

August 25, 2008
By
R Design Flaws #1 and #2:  A Solution to Both?

I’ve previously posted about two design flaws in R. The first post was about how R produces reversed sequences from a:b when a__b, with bad consequences in “for” statements (and elsewhere). The second post was about how R by default drops dimensions in expressions like M when i:j is a sequence only one long (ie,

Read more »

Design Flaws in R #2 — Dropped Dimensions

August 19, 2008
By
Design Flaws in R #2 — Dropped Dimensions

In a comment on my first post on design flaws in the R language, Longhai remarked that he has encountered problems as a result of R’s default behaviour of dropping a dimension of a matrix when you select only one row/column from that dimension. This was indeed the design flaw that I was going to

Read more »

Design Flaws in R #1 — Reversing Sequences

August 6, 2008
By
Design Flaws in R #1 — Reversing Sequences

The R language for statistical computing has become the standard for academic statistical research, for the very good reason that it’s better than the alternatives. It’s far from perfect however. I could come up with a long “wish list” of desired features it lacks, but that’s not what I’ll do in this series of posts.

Read more »

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)