I have a data frame, for exampe
> dat <- data.frame(a=rnorm(5),b=rnorm(5),c=rnorm(5))
ab c
1 -0.1731141 0.002453991 0.1180976
2 1.2142024 -0.413897606 0.7617472
3 -0.9428484 -0.609312786 0.5132441
4 0.1343336 0.178208961 0.7509650
5 -0.1402286 -0.333476839 -
e.g.
dat[ order(dat$a), ]
On Sun, May 31, 2009 at 2:34 PM, Угодай n/a wrote:
> I have a data frame, for exampe
>
>> dat <- data.frame(a=rnorm(5),b=rnorm(5),c=rnorm(5))
> a b c
> 1 -0.1731141 0.002453991 0.1180976
> 2 1.2142024 -0.413897606 0.7617472
> 3 -0.942848
2 matches
Mail list logo