From hadley at rice.edu  Wed May  4 14:54:31 2011
From: hadley at rice.edu (Hadley Wickham)
Date: Wed, 4 May 2011 07:54:31 -0500
Subject: [Rd] Recursive objects
In-Reply-To: <A71FB14E-DCCD-4003-8790-F44CC7637B3B@gmail.com>
References: <BANLkTi=jOrtXY-njYJu7Z7pmokSzLDPfkA@mail.gmail.com>
	<BANLkTinFth1CD5bQ9rHhGCdpprkpziEeOA@mail.gmail.com>
	<A71FB14E-DCCD-4003-8790-F44CC7637B3B@gmail.com>
Message-ID: <BANLkTinEQrVQeAr5pkfeZy-SQGMj1LF=Lg@mail.gmail.com>

Thanks to you both for reminding me about those important recursive objects!
Hadley

On Wed, May 4, 2011 at 7:49 AM, peter dalgaard <PDalgd at gmail.com> wrote:
>
> On May 4, 2011, at 14:35 , Kenn Konstabel wrote:
>
>> On Wed, May 4, 2011 at 3:26 PM, Hadley Wickham <hadley at rice.edu> wrote:
>>> Hi all,
>>>
>>> Does anyone have a comprehensive list of recursive-type objects in R?
>>> is.recursive defines them as by exclusion: "most types of objects are
>>> regarded as recursive, except for ?vector types, ?NULL? and symbols
>>> (as given by ?as.name?)." ?I think this that means recursive objects
>>> are:
>>>
>>> ?* lists
>>> ?* pairlists
>>> ?* calls
>>> ?* expressions
>>
>> is.recursive(environment())
>> # [1] TRUE
>
>
> Closures:
>
>> is.recursive(ls)
> [1] TRUE
>
>
>>
>>>
>>> Did I miss anything?
>>>
>>> Hadley
>>>
>>> --
>>> Assistant Professor / Dobelman Family Junior Chair
>>> Department of Statistics / Rice University
>>> http://had.co.nz/
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>
> --
> Peter Dalgaard
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Email: pd.mes at cbs.dk ?Priv: PDalgd at gmail.com
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



[Rd] Recursive objects
Hadley Wickham