Re: [R] sort

2008-03-19 Thread Alfons Sutter
Thank you :-) - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: Alfons Sutter <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 11:01:29 AM Subject: Re: [R] sort > Is there any function in R whi

Re: [R] sort

2008-03-19 Thread Alfons Sutter
keys[] <- keys[sort.list(data[, by[[i]]][keys],na.last= na.last)] else keys[] <- keys[order(data[, by[[i]]][keys], rotate, na.last = na.last)[rotate]] } data[keys, ] } TheData1 <- lsort(TheData, by=c(x1,x2)) - Origi

[R] sort

2008-03-19 Thread Alfons Sutter
Hello, Is there any function in R which sorted data as x1 <- c(1,3,2,4,5,1) x2 <- c(2,0,2,3,5,2) TheData <- data.frame(x1,x2) TheData1 <- sort(TheData, by=c(x1,x2)) Thanks in advance! Alfons [

Re: [R] (no subject)

2008-03-10 Thread Alfons Sutter
message? Thank you in advance! - Original Message From: Duncan Murdoch <[EMAIL PROTECTED]> To: Alfons Sutter <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Sent: Monday, March 10, 2008 12:18:11 PM Subject: Re: [R] (no subject) On 10/03/2008 6:50 AM, Alfons Sutter wrote: > Hi all, &

[R] (no subject)

2008-03-10 Thread Alfons Sutter
Hi all, I am trying to read a text file in R! I have a warning message: In read.table(file = "data1.txt", header = T) : uncompleted last line of readTableHeader in 'data1.txt' Could you please tell me why? and how can I deal with missing value when I read this file? all the best Alfons