I am sampling from a file containing a list of many values eg:
312313.3424344412334.92321312353532and using R to randomly sample from this list:
list = read.table("data")out <-sample(list,50,replace=TRUE)out.mean<-mean(out)out.meanCould somebody please show me how to put this into a loop, so that I can perform this procedure 1000 times and take the mean of the 1000 means that this will generate?
Thank you very much in advance!