Re: [Rd] type of list elements in .Call

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue 01 Feb 2005 - 02:16:25 EST

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

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue Feb 01 01:24:15 2005

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:02:43 EST