[R] order
tomsv193@student.liu.se
tomsv193 at student.liu.se
Tue Jul 3 16:55:39 CEST 2001
Hi!
Why is the rows-indicies effected by ordering?
Example:
(data=)
name age
1 peter 13
2 eric 15
3 daniel 14
#ordering by name...
name age
3 daniel 14
2 eric 15
1 peter 13
why not:
name age
1 daniel 14
2 eric 15
3 peter 13
Does it effect other operations? data[,1] really gives the 1:st row,
but when data is printed it says that the first row have index 3...
/Tomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list