Message-ID: <Pine.A41.4.61b.0505190933480.327288@homer12.u.washington.edu>
Date: 2005-05-19T16:39:13Z
From: Thomas Lumley
Subject: R annoyances
In-Reply-To: <428CB24A.2070603@sprintmail.com>
On Thu, 19 May 2005, Rod Montgomery wrote:
> Thomas Lumley wrote:
>> This one is actually a FAQ,
>> mtx[,1,drop=FALSE]
>>
>> -thomas
>>
> I wonder whether there is, or should be, a way to set FALSE as the default?
>
There shouldn't be (apart from editing the code), because you really don't
want something this basic to be unpredictable.
There have been discussions at several times about whether drop=FALSE or
drop=TRUE should be the default. The decision has always been that
programmers can cope either way, but that users probably don't expect
mtx[,1] to be a vector, and that they definitely don't expect mtx[1,1] to be a
matrix.
-thomas