Re: [R] as.ordered

2007-10-09 Thread Birgit Lemcke
Hello Gavin, I am so sorry that I haven“t read your mail accurately. Now I tried all and it works very well and is exactly what I need. Many thanks for your help. And also many thanks to all the other people helping me. Greetings Birgit Am 09.10.2007 um 17:38 schrieb Gavin Simpson: > On Tue

Re: [R] as.ordered

2007-10-09 Thread Gavin Simpson
On Tue, 2007-10-09 at 17:12 +0200, Birgit Lemcke wrote: > Hello Gavin, > > thanks for your answer. > > Answering to your sort.list a data frame. I tried to convert it to a > vector but it was also not successful: > > bract.awnMin<-as.vector(bract.awnMin) Why did you expect that to work? I gue

Re: [R] as.ordered

2007-10-09 Thread Birgit Lemcke
Hello Gavin, thanks for your answer. Answering to your sort.list a data frame. I tried to convert it to a vector but it was also not successful: bract.awnMin<-as.vector(bract.awnMin) sort.list(bract.awnMin) Fehler in sort.list(bract.awnMin) : 'x' must be atomic for 'sort.list' Have you cal

Re: [R] as.ordered

2007-10-09 Thread Gavin Simpson
Birgit, First things first, stop trying to sort.list a data frame. This is why you are getting the error. It is still a dataframe whether it has 1 column or 100. ?sort.list clearly says argument 'x' is a vector, and as this shows, you are not passing it a vector > dat0 <- data.frame(var1 = runif(

Re: [R] as.ordered

2007-10-09 Thread Birgit Lemcke
Hello Friedrich, thanks for your help and it is really not important that the solution is elegant. Important is only that there is a solution. But I still have some problems with this topic. #I tried as you suggested to order the vectors separately. My first problem is that my data is a data

Re: [R] as.ordered

2007-10-08 Thread Friedrich Schuster
Hello, (Warning. This might not be the most complete or elegant solution ...) If you want a sorted dataframe: look here for example http://tolstoy.newcastle.edu.au/R/help/05/02/12391.html To convert the factors from a data frame, you have to call as.ordered for each factor separately (not for t

Re: [R] as.ordered

2007-10-08 Thread Friedrich Schuster
Hello, (Warning. This might not be the most complete or elegant solution ...) If you want a sorted dataframe: look here for example http://tolstoy.newcastle.edu.au/R/help/05/02/12391.html To convert the factors from a data frame, you have to call as.ordered for each factor separately (not for