[R] Sorting and subsetting

Peter Dalgaard pdalgd at gmail.com
Mon Sep 20 21:38:51 CEST 2010


On 09/20/2010 08:01 PM, David Winsemius wrote:

>       index        foo
> 1.6      1 -3.0267759
> 1.7      1 -1.3725536
> 1.19     1 -1.1476048
> 1.16     1 -1.0963967
> 1.2      1 -1.0684793
> 2.29     2 -1.6601486
> 2.21     2 -1.2633632
> 2.22     2 -0.9875626
> 2.38     2 -0.9515301
> 2.30     2 -0.8638903
> 
> Unlike Dalgaard who arrived at a similar result via a different route  
> and called the row names "silly", I thought they were informative. But  
> maybe the sobriquet was directed at his second solution. I couldn't  
> tell.
> 

It's not a big deal, it's just that I know the hoops that the dataframe
code jumps through in order to generate unique rownames, which hardly
anyone ever uses.


-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list