[R] monthly means of ts object

2011-04-30 Thread Hamid Hamid
Dear user, I have a monthly time series data (length 144), as ts (time series) object in R. I would like to 1-extract vector of let say January data (a vector of length 12), 2-extract the monthly means, sums (a vector of length 12). Many tahnks in advance Yours, Hamid

[R] all data frame columns SUBSET

2009-02-02 Thread Hamid Hamid
Dear All, I have a data frame (mydata), with let say 5 columns V1,V2,...,V5. (we know the power set of {V1,V2,..,V5} has 2^5-1 elements). I need to construct a vector T of length 5 which its i-th element is the maximum of (let say) mean values obtained based on the columns subset of size i. (MY F

[R] all subset of a data frame column

2009-02-02 Thread Hamid Hamid
Dear All, I have a data frame (mydata), with let say 5 columns V1,V2,...,V5. (we know the power set of {V1,V2,..,V5} has 2^5-1 elements). I need to construct a vector T of length 5 which its i-th element is the maximum of (let say) mean values obtained based on the columns subset of size i. I me

[R] vector

2008-12-01 Thread Hamid Hamid
Dear All, I am trying to build a program which will take repeated samples without replacement from a population of values. The interesting catch is that I would like the sample values to be removed from the population, after each sample is taken. For example: pop<-c(1,5,14,7,9,12,18,19,65,54) s

[R] exclude a vector value from another vector

2008-12-01 Thread Hamid Hamid
Dear All, I am trying to build a program which will take repeated samples (w/o replacement) from a population of values. The interesting catch is that I would like the sample values to be removed from the population, after each sample is taken. For example: pop<-c(1,5,14,7,9,12,18,19,65,54) sa