RMS is defined as the square root of the mean of the squares. Take your 1000 samples, square them, calculate the mean (sum divided by number of samples) and take the square root of the result.
The average of the samples is just that - the average; it is not the RMS value.
Lynn