Re: [R] downsampling

2009-07-27 Thread Philipp Pagel
On Mon, Jul 27, 2009 at 02:42:33PM +0200, Jan M. Wiener wrote: > However, both approx() and spline() seem to select the number of > required data points from the original data (at the correct positions, > of course) and ignore the remaining data points, as the following > example demonstrates: > >

Re: [R] downsampling

2009-07-27 Thread Jan M. Wiener
Dear Philipp and R-Users, thank you very much for the help. However, both approx() and spline() seem to select the number of required data points from the original data (at the correct positions, of course) and ignore the remaining data points, as the following example demonstrates: > a= c(1,0,2

Re: [R] downsampling

2009-07-24 Thread Philipp Pagel
On Fri, Jul 24, 2009 at 03:16:58AM -0600, Warren Young wrote: > Michael Knudsen wrote: > >On Fri, Jul 24, 2009 at 9:32 AM, Jan Wiener > >wrote: > > > >>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 s

Re: [R] downsampling

2009-07-24 Thread Warren Young
Michael Knudsen wrote: On Fri, Jul 24, 2009 at 9:32 AM, Jan Wiener wrote: 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. What exactly do you mean by downsampling? It means that the ori

Re: [R] downsampling

2009-07-24 Thread Michael Knudsen
On Fri, Jul 24, 2009 at 9:32 AM, Jan Wiener wrote: > 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. What exactly do you mean by downsampling? Do you just want to sample 100 random entri