[R] Calling R function from within C code
ripley at stats.ox.ac.uk
Thu Jan 16 17:49:03 CET 2003
It's hard to know where to start from. A pairlist is a linked list of R
objects, a generic vector (of mode list) is an array of pointers to R
objects. They are just different (and I've simplified by ignoring
tags/names). A paired list has sequential access, a generic vector random
access, but it is less expensive to append to / insert in a pairlist.
On Thu, 16 Jan 2003, Timur Elzhov wrote:
> On Thu, Jan 16, 2003 at 03:22:42PM +0000, ripley at stats.ox.ac.uk wrote:
> > That way. It's a pairlist of arguments. As that manual says
> Thank you, Mr. Ripley!
> But, it was interesing for me for a long - what is a principal
> difference between 'pairlist' and a "general" list?
> Why to access pairlist elements I need to use the strange macro
> like CAR(CDR(x)), and cannot do it by VECTOR_ELT(x, i) ?
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help