Skip to content
Prev 67454 / 398506 Next

where is internal function of sample()?

On Mon, 2005-04-11 at 23:04 -0400, Weijie Cai wrote:
A quick grep of the source code tree tells you that the function is
in .../src/main/random.c

A general pattern for C .Internal functions is to use a prefix of "do_"
in conjunction with the R function name. So in this case, the C function
is called do_sample and begins at line 391 (for 2.0.1 patched) in the
aforementioned C source file.

HTH,

Marc Schwartz