powered by
resample
resample(X, size)
A vector to be resamples
The size of the resulting vector. Should be a number such that size*nrow(X) is a whole number
A vector of resampled X values
# NOT RUN { X<-c(1:10) resample(X,.5) # }
Run the code above in your browser using DataLab