Re: [R] Percentiles with R for a big data.frame

2013-01-25 Thread David Winsemius
On Jan 23, 2013, at 5:45 AM, Simonas Kecorius wrote: I found a code: y.ts - ts(data, frequency=12) aggregate(y.ts, FUN=quantile, probs=0.10) Seems it works fine even for a big data.frame. Except for the fact that 'y.ts' is not a dataframe, so you are using a function that has different

Re: [R] Percentiles with R for a big data.frame

2013-01-25 Thread Simonas Kecorius
What a shame.. Don't know the details about ts, but I tried the code with data.frame, then checked the result with OpenOffice offered percentiles for the same data. It was identical, so now I am a bit confused... 2013/1/25 David Winsemius dwinsem...@comcast.net On Jan 23, 2013, at 5:45 AM,

Re: [R] Percentiles with R for a big data.frame

2013-01-23 Thread Simonas Kecorius
I found a code: y.ts - ts(data, frequency=12) aggregate(y.ts, FUN=quantile, probs=0.10) Seems it works fine even for a big data.frame. Thanks for your help. 2013/1/22 David Winsemius dwinsem...@comcast.net On Jan 22, 2013, at 5:58 AM, Simonas Kecorius wrote: Hey Duncan, Neither me do

Re: [R] Percentiles with R for a big data.frame

2013-01-22 Thread Simonas Kecorius
Hey Duncan, Neither me do imagine what formula OpenOffice uses for quantiles. I have checked a data string, 24 values, to calculate a quantiles with OpenOffice and R. The result is identical. The problem arises when I try to implement quantile calculation in this form:

Re: [R] Percentiles with R for a big data.frame

2013-01-22 Thread David Winsemius
On Jan 22, 2013, at 5:58 AM, Simonas Kecorius wrote: Hey Duncan, Neither me do imagine what formula OpenOffice uses for quantiles. I have checked a data string, 24 values, to calculate a quantiles with OpenOffice and R. The result is identical. The problem arises when I try to implement

[R] Percentiles with R for a big data.frame

2013-01-21 Thread Simonas Kecorius
Dear R users, I came up to a problem dealing with percentiles in R. From my previous questions: I do have a big data.frame, with lots of columns and rows. The following command enables me to calculate means for all data frame. dat1$newID-rep(1:(nrow(dat1)/12),each=12) #if nrow(dat1)/12 is

Re: [R] Percentiles with R for a big data.frame

2013-01-21 Thread Duncan Murdoch
On 13-01-21 6:41 PM, Simonas Kecorius wrote: Dear R users, I came up to a problem dealing with percentiles in R. From my previous questions: I do have a big data.frame, with lots of columns and rows. The following command enables me to calculate means for all data frame.