Hi,
I have a column (field1) with n values.
I need an algorithm to calculate the average for each k values beginning with 1 until n-k+1.
For example I have 10 values and k=4
I need to calculate the average of 1 to 4 values, 2 to 5, 3 to 6, 4 to 7, …..7 to 10.
I w ant to put all this results in a new column (field2) beginning with k position and finishing to the end of column.
For example I want to put the first average in row 4, the second in row 5 and so far.
Can anybody help me, please?
I have a column (field1) with n values.
I need an algorithm to calculate the average for each k values beginning with 1 until n-k+1.
For example I have 10 values and k=4
I need to calculate the average of 1 to 4 values, 2 to 5, 3 to 6, 4 to 7, …..7 to 10.
I w ant to put all this results in a new column (field2) beginning with k position and finishing to the end of column.
For example I want to put the first average in row 4, the second in row 5 and so far.
Can anybody help me, please?