From ripley at stats.ox.ac.uk  Mon Jan 31 16:16:25 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon Jan 31 16:16:36 2005
Subject: [Rd] type of list elements in .Call
In-Reply-To: <Pine.LNX.4.61.0501310953100.10677@Chrestomanci>
References: <Pine.LNX.4.61.0501310953100.10677@Chrestomanci>
Message-ID: <Pine.LNX.4.61.0501311510350.27856@gannet.stats>

On Mon, 31 Jan 2005, Faheem Mitha wrote:

> [Forwarding to r-devel.]

>
> Dear People,
>
> Here is something I do not understand. Consider

...

This is covered, copiously, in the examples in `Writing R Extensions'.
Hint: search for coerceVector.

> as I would expect. I thought that if the vectors in the list could be 
> regarded as integer vectors, they would be coerced appropriately, but 
> apparently not. Is there any way I can tell R to regard them as integer 
> vectors?

Reading the manual would have corrected your thinking.

-- 
Brian D. Ripley,                  ripley@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


[Rd] type of list elements in .Call
Prof Brian Ripley