[R] .C() memory allocation
Ross Ihaka
ihaka at stat.auckland.ac.nz
Fri Dec 5 20:56:13 CET 2003
Dan Davison wrote:
> I would like to retrieve a vector of integers from a call to .C(), but I
> don't know its length in advance. How do I do this without making an ugly
> safe guess?
You should probably look into using .Call instead. There's a bit of
learning overhead, but the payoff is that it's much more flexible.
--
Ross Ihaka Email: ihaka at stat.auckland.ac.nz
Department of Statistics Phone: (64-9) 373-7599 x 85054
University of Auckland Fax: (64-9) 373-7018
Private Bag 92019, Auckland
New Zealand
More information about the R-help
mailing list