Continuing the discussion from Creating a program that loops 5 values into a mean in one row and places it into a new row repeatedly:
With regard to the previous discussion I'm using the first solution from AlexisW to solve this problem in my full data set. Although after I pivot my data frame and try to create a column of indexes and use that to select every fifth measurement, I get the error seen in the screenshots. Can anyone suggest a potential solution? I don't know why it is off 4 values (must be size 3264 or 1, not 3260)