Re: [R] binning a vector

From: Wolski <wolski_at_molgen.mpg.de>
Date: Tue 27 Jul 2004 - 03:56:28 EST

?tapply

On 7/26/2004 at 5:11 PM Arne.Muller@aventis.com wrote:

>>>Hello,
>>>
>>>I was wondering wether there's a function in R that takes two vectors
>>>(of same length) as input and computes mean values for bins (intervals)
>>>or even a sliding window over these vectros.
>>>
>>>I've several x/y data set (input/response) that I'd like plot together.
>>>Say the x-data for one data set goes from -5 to 14 with 12,000 values,
>>>then I'd like to bin the x-vector in steps of +1 and calculate and plot
>>>the mean of the x-values and the y-values within each bin.
>>>
>>>I was browsing the R-docs but couldn't find anything appropiate.
>>>
>>> thanks for hints + kind regads,
>>>

>>> Arne
>>>
>>>______________________________________________
>>>R-help@stat.math.ethz.ch mailing list
>>>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>>>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic

Ihnestrasse 63-73 14195 Berlin       'v'    
tel: 0049-30-83875219               /   \    
mail: wolski_at_molgen.mpg.de        ---W-W----    http://www.molgen.mpg.de/~wolski

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 27 04:04:35 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:16 EST