Re: [R] Rearranging variables in table in non-alphabetical (manually specified) order

2011-05-08 Thread Uwe Ligges
On 08.05.2011 17:10, André Júng wrote: Dear all, I'm trying to rearrange variables in a table in a custum order for using it with levelplot. So far I could only find examples showing how to sort alphabetically. Here is a short example: a<- c("Anna","Anna","Michael","Klaus","Klaus","Anna","F

Re: [R] Rearranging variables in table in non-alphabetical (manually specified) order

2011-05-08 Thread Duncan Murdoch
On 11-05-08 11:10 AM, André Júng wrote: Dear all, I'm trying to rearrange variables in a table in a custum order for using it with levelplot. So far I could only find examples showing how to sort alphabetically. Here is a short example: a<- c("Anna","Anna","Michael","Klaus","Klaus","Anna","Fr

[R] Rearranging variables in table in non-alphabetical (manually specified) order

2011-05-08 Thread André Júng
Dear all, I'm trying to rearrange variables in a table in a custum order for using it with levelplot. So far I could only find examples showing how to sort alphabetically. Here is a short example:  a <- c("Anna","Anna","Michael","Klaus","Klaus","Anna","Fritz")  b <- c("Schnitzel","Pommes","Po