Re: [R] Grouping columns

2011-07-21 Thread Geophagus
Hi @ all, both possibilities are working very fine. Thanks a lot for the fast help! Best Greetinx from the "Earth Eater" Geophagus -- View this message in context: http://r.789695.n4.nabble.com/Grouping-columns-tp3681018p3683076.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Grouping columns

2011-07-20 Thread David Winsemius
On Jul 20, 2011, at 10:42 AM, Geophagus wrote: *Hi @ all, I have a question concerning the possibilty of grouping the columns of a matrix. R groups the columns alphabetically. What can I do to group the columns in my specifications? Dear Earth Eater; You can create a factor whose levels a

[R] Grouping columns

2011-07-20 Thread Geophagus
*Hi @ all, I have a question concerning the possibilty of grouping the columns of a matrix. R groups the columns alphabetically. What can I do to group the columns in my specifications? The script is the following:* > #R-Skript: Anzahl xyz > > #Quelldatei einlesen > b<-read.csv2("Z:/int/xyz.csv

Re: [R] Grouping columns

2011-07-20 Thread Brad Patrick Schneid
untested because I don't have access to your data, but this should work. b13.NEW <- b13[, c("Gesamt", "Wasser", "Boden", "Luft", "Abwasser", "Gefährliche Abfälle", "nicht gefährliche Abfälle")] Geophagus wrote: > > *Hi @ all, > I have a question concerning the possibilty of grouping the