create a new dataframe with intervals and computing a weighted average for each of its rows
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20131124/707fa775/attachment.pl>