From pdalgd at gmail.com  Mon Dec  5 10:05:14 2016
From: pdalgd at gmail.com (peter dalgaard)
Date: Mon, 5 Dec 2016 10:05:14 +0100
Subject: [Rd] unlist strips date class
In-Reply-To: <84139199-8a1f-28f9-2ab0-fae8cd90976b@fredhutch.org>
References: <CAPekMC=Od4ib7QJbpk8iGm9woUB4bzM+5BYq3vLqH_4u9ApXNA@mail.gmail.com>
	<84139199-8a1f-28f9-2ab0-fae8cd90976b@fredhutch.org>
Message-ID: <F1791DAB-5420-480B-AC49-ADF672B28DB8@gmail.com>


On 02 Dec 2016, at 23:13 , Herv? Pag?s <hpages at fredhutch.org> wrote:

> 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:

Well, both are generic, and e.g. there is no "Date" method for unlist(), but there is for c(). It is not clear that the two should be kept in lockstep and there is certainly no mechanism to enforce that.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] unlist strips date class
peter dalgaard