formula
a formula object, with the response on the left of a ~ operator, and the terms, separated by + operators, on the right.
kernel
a character string giving the smoothing kernel to be used. This must match one of "gaussian", "rectangular", "triangular", "epanechnikov", "biweight", "cosine" or "optcosine", with default "gaussian".