[R] Why 95% "quantile" empty in R or why 95% "quantile" = 1 with data values between 0 and 1?

2012-07-09 Thread Angelr
I am calling quantiles as follows. I don't understand why sometimes the columns (data values) above 95% are returned as "NULL"!! When I drop the percentile down to 92%, I see colums appearing. Why would any quantile be empty? I see sometimes that 95% percentile is being chosen as "1" for my data be

[R] how to print global index from tapply function?

2012-06-08 Thread Angelr
Hi, the global row indexing for my cluster assignment is as : buf <- tapply(test1, test2, FUN = function(x){x;}) $`1` [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 $`2` [1] 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 I used "tapply" function to find minimum as: