Re: [Rd] stats::kernel

2010-11-30 Thread Pierre Chausse
Thanks. It is true that I can set m manually. I just thought that since the default depended on the length of coef that it was setting it right when coef was a vector. Since when the coef is a name, the default is always 2, the following modification would make the job. kernel <- function

Re: [Rd] stats::kernel

2010-11-30 Thread Prof Brian Ripley
What you are saying is that an undocumented default does not apply to your usage. So all you need to do, surely, is to set the argument yourself? Your 'correction' makes e.g. kernel("daniell") invalid. I"ve applied a change in R-devel that means 'm' will not need to be supplied if 'coef' is

[Rd] stats::kernel

2010-11-30 Thread Pierre Chausse
Hi, There is a small bug in the kernel() function. Everything is fine when we use the format: kernel("name",m,r) but if we want the first argument to be a vector, which is useful is we are interested in using a method not implemented in kernel(), the default value of m is wrong. For example