Hi,
I am looking for ways to donwsample one-dimensional vectors.
For example,

x=sample(1:5, 115, replace=TRUE)

How do I downsample this vector to 100 entries? Are there any R functions or 
packages that provide such functionality. 

I did find the zoo package and the aggregate() function, but these appear to be 
rather specific for time-series. 

Thanks in advance,
Jan

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to