Dear R-ers: I'm sorry to disturb you, I want just ask how to work with a sum? To be more exact I want to work with the function f(x)= sum_1^{n}K(x-x_i/h), K is a kernel or any other function I have a data set (x_i) and I want to compute x for each x or plot f(x). Thank you for your hulp