[R] question

2004-02-27 Thread Svetlana Eden
==FALSE)(!(is.na(cV))) )] i2 numeric(0) -- Svetlana EdenBiostatistician IISchool of Medicine Department of Biostatistics Vanderbilt University __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman

[R] question about setdiff()

2004-02-27 Thread Svetlana Eden
indicesFalse = indices[compareVector == FALSE] indicesFalse [1] NA 5 NA setdiff(indicesNA, indicesFalse) OK [1] 1 6 setdiff(indicesFalse, indicesNA) I would expect here 'NA 5 NA' [1] NA 5 -- Svetlana EdenBiostatistician II

[R] question about if else

2004-02-27 Thread Svetlana Eden
()==NULL' is not TRUE and not FALSE ? -- Svetlana EdenBiostatistician IISchool of Medicine Department of Biostatistics Vanderbilt University __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

[R] interesting feature

2004-02-18 Thread Svetlana Eden
(x = 10, y = 87) d - rbind(d, add) # now I would think that the next index should be 21, BUT: d x y 1 1 99 2 10 55 11 14 99 12 10 87 # so what is the intuition of such indexing? -- Svetlana EdenBiostatistician IISchool of Medicine

[R] What is the correct way of using function C() for factors:

2004-02-05 Thread Svetlana Eden
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 factors? -- Svetlana EdenBiostatistician IISchool

[R] correction to the previously asked question (about merging factors)

2004-02-05 Thread Svetlana Eden
. --- -- Svetlana EdenBiostatistician IISchool of Medicine Department of Biostatistics Vanderbilt University -- Svetlana EdenBiostatistician IISchool of Medicine Department