Re: [Rd] median and data frames

From: peter dalgaard <>
Date: Wed, 27 Apr 2011 20:56:17 +0200

On Apr 27, 2011, at 19:44 , Patrick Burns wrote:

> I would think a method in analogy to
> '' would be a logical choice.
> But I'm presuming there might be an argument
> against that or '' would already
> exist.

Only if someone had a better plan. As you are probably well aware, what you are currently seeing is a rather exquisite mashup of methods getting applied to objects they shouldn't be applied to. Some curious effects are revealed, e.g. this little beauty:

> sort(df3.3)

Error in `[.data.frame`(x, order(x, na.last = na.last, decreasing = decreasing)) :   undefined columns selected
> names(df3.3)<-NULL
> sort(df3.3)

  NA NA NA NA NA NA NA NA NA 1 1 7 10 NULL NULL NULL NULL NULL NULL 2 2 8 11 <NA> <NA> <NA> <NA> <NA> <NA> 3 3 9 12 <NA> <NA> <NA> <NA> <NA> <NA> Warning message:
In, digits = digits, na.encode = FALSE) :   corrupt data frame: columns will be truncated or padded with NAs

Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email:  Priv:

______________________________________________ mailing list
Received on Wed 27 Apr 2011 - 19:03:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 27 Apr 2011 - 19:50:54 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive