Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20081204/0c59d87d/attachment.pl>
Thank you all very much for your attention and patience. The different answers made a lot of things clear to me. I've got the answer and learned a lot. -- Svetlana Eden Biostatistician II School of Medicine Department of Biostatistics...
The funciton c() works differently for strings and for factors: For strings: > l = c('a', 'b') > l [1] "a" "b" For factors: > l = c(factor('a'), factor('b')) > l [1] 1 1 What should be the right technique for merging...
> version _ platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major 1 minor 8.1 year 2003 month 11 day 21 language R > aa <- as.POSIXct(c('1/1/1980','1/2/1980','')) > ifelse...
Thank you for your answers, I have another question: the behaviour of setdiff(indicesFalse, indicesNA) does not seem predictable to me. > indices [1] 1 2 3 4 5 6 > compareVector [1] NA TRUE TRUE TRUE FALSE NA > indicesNA = indices[is...
I have two factors l1, l2, and I'd like to merge them. Function c() does not give me the result I want: > l1 = factor(c('a', 'b')) > l2 = factor(c('c', 'd')) > lMerge = c(l1, l2) > lMerge [1] 1...
Today is a good day for asking question, I guess. > c() NULL > > length(c())==0 [1] TRUE > > r = ifelse(length(c())!=0, c(), c(1,2)) ### OK > r = c() ### OK > r = ifelse(length(c())==0, c(), c(1,2)) ### why...
Hi everybody. The question: I get two vectors 'iFalseFalse' and 'i2'. I think they should be the same but they are not. Is it because R does not handle complicated logical expressions in such cases or I do something wrong...
I have two factors l1, l2, and I'd like to merge them. (Remark: The factors can not be converted to charaters) Function c() does not give me the result I want: > l1 = factor(c('aaaa', 'bbbb')) > l2 = factor(c...
Hi, everybody. This was an interesting discussion last time and it helped me a lot. Could you please have a look at some feature and tell me why it was designed this way (my questions are under #########) > x = c(1...
The Details. In the following version. > version _ platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major 1 minor 8.1 year 2003 month 11 day 21 language R > lookup.xport ignores some datasets...
Thank you so much, this was very helpful. Svetlana Terry Therneau wrote: > This query of "why do SAS and S give different answers for Cox models" comes > up every so often. The two most common reasons are that > a. they...
Can't find what you're looking for? Try searching with Google .