Displaying 1 result from an estimated 1 matches for "coeresponds".
2008 Jul 26
1
Simple vector question.
...Plus Men
604 2007 2 138906 1 10322 BOYS TV & Movies Boys
605 2007 2 138860 1 0 (Unknown) (Unknown)
>
The 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...