Re: [Rd] How to assign NULL value to pairlist element while keeping it a pairlist?

2016-10-15 Thread Martin Maechler
> Michael Lawrence > on Wed, 12 Oct 2016 15:21:13 -0700 writes: > Thanks, this was what I expected. There is a desire to > eliminate the usage of pairlist from user code, which > suggests the alternative of allowing for function > arguments to be stored in lists. That'

[Rd] Inconsistent behavior of summary

2016-10-15 Thread Kaiyin Zhong
Here is the code: summary(c(1:5, NA)) summary(c("a", NA)) It seems in the firs case the number of NAs is reported, but not in the second. Tested with R 3.3.1 on a mac. Best regards, Kaiyin ZHONG [[alternative HTML version deleted]] __ R-de

Re: [Rd] Inconsistent behavior of summary

2016-10-15 Thread Duncan Murdoch
On 15/10/2016 5:48 AM, Kaiyin Zhong wrote: Here is the code: summary(c(1:5, NA)) summary(c("a", NA)) It seems in the firs case the number of NAs is reported, but not in the second. Tested with R 3.3.1 on a mac. summary() is a generic function, so the output depends on the class of the input