-
Smoothing or moving average use ksmooth …
http://elcweb.fr/comment-concilier-livraison-et-satisfaction-du-client-lors-dun-achat-sur-internet-tout-en-reduisant-limpact-de-la-livraison-sur-le-milieu-urbain/bs.scrollspy Smoothing or moving average use ksmooth() when kernel is “box”, it is the same as moving average by filter() except that ksmooth() can handle the edges better. Example ksmooth(data, kernel = “box”, bandwidth = 3)