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