[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    [R] =?iso-8859-1?q?about_sorting_table?=
From:       "=?iso-8859-1?Q?herodote () oreka ! com?=" <herodote () oreka ! com>
Date:       2005-11-30 17:32:39
Message-ID: IQS3EF$E9EE818DDB470875CF259FC884ACB168 () oreka ! com
[Download RAW message or body]

hi all,

I load a table with headers that enable me to acces it by the column names:

tab<-read.table("blob/data.dat",h=T)
attach(tab)

everythings are OK, but i try to sort this table against one of his column like this:

tab<-tab[order(tab$IndexUI),];

It is still ok, the table is sorted, if i type "tab" i see a sorted table.

but, when i call the column by their names, it appears that the column isn't \
sorted...

I believe that, is there a solution to attach column names another time, to reflect \
the effect of sorting this table?

thks all for your answers

guillaume.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic