-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of hadley wickham
Sent: Wednesday, November 11, 2009 3:03 PM
To: Peng Yu
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] Is there a way to specify drop=FALSE as the
global default?
See the above example. Is there a way to make 'drop=FALSE' as global
default, so that when I say 'tmp[,1]', R will treat it as
'tmp[,1,drop=FALSE]'?
The following code won't change the defaults, but it would at least
let you know when you're making the mistake: