
  
    Hi R Users,
  I don't know how much is difficult my problem and even it is possible to solve in R or not.
  Given a vector with 2000 observations. I want to creat a new vector  from that vector so that new vector be the sum of every 5 observations  sequently. That is , each new observation is sum of every 5 sequent  observations, from the first observation of previous vector to the end.  So new vector must include 500 observations. My effort did not work in  R.
  Do you have any way? Thanks a lot for any help.
  Amir
  
  
  
			
---------------------------------


	[[alternative HTML version deleted]]


