[Rd] unlist strips date class

2016-12-02 Thread Kenny Bell
Is this a bug? > unlist(list(as.Date("2015-01-01"))) [1] 16436 [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] unlist strips date class

2016-12-02 Thread Dirk Eddelbuettel
On 2 December 2016 at 10:45, Kenny Bell wrote: | Is this a bug? | | > unlist(list(as.Date("2015-01-01"))) | [1] 16436 Not really, it is documented. S3 classes operate via an attribute tag, and attributes get dropped by certain base functions. I must have hit something like the following about a

[Rd] Spam messages

2016-12-02 Thread Kenny Bell
Have others received spam messages after posting to this list? The two problem emails are hodgesdonna...@yahoo.com and amykristen4...@octbm.com. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mai

Re: [Rd] unlist strips date class

2016-12-02 Thread Hervé Pagès
Hi, On 12/02/2016 10:45 AM, Kenny Bell wrote: Is this a bug? unlist(list(as.Date("2015-01-01"))) [1] 16436 Good question. More generally one might reasonably expect 'unlist(x)' to be equivalent to 'do.call(c, x)' on a list 'x' where all the list elements are atomic vectors: x <- list(1: