search for: dayofyearsales

Displaying 1 result from an estimated 1 matches for "dayofyearsales".

2008 Jul 26
1
Simple vector question.
...he DayOfYear goes from 1:365. I would like to form a vector from this data where the length of the vector is 365 and the value at each index coeresponds to the sum of the Quantity column where DayOfYear equals the index. For example if I was to use just the sample above this new vactor call it 'DayOfYearSales' would be: DayOfYearSales[1] = 5 DayOfYearSales[2] = 6 Since in the snippet above only DayOfYear = 1:2 is shown. I want to continue the sum for the whole data frame. I am sure this is fairly easy. I just cannot find out how to do it. Once I figure this out it would be relatively stra...