For context, I have a dataset v, and I want to apply 1-exp(-x[i]*theta) to the i'th element of v in succession. 
Assume I know the value of theta. I then want to store this as a vector so that I can sort it, and apply it to another function (a 'goodness-of-fit test statistic).
Is there a standard way of doing this?
 
     
    