It has been in base since it was added to table.R in 1.7.0:
r22858 | hornik | 2003-01-26 13:15:46 + (Sun, 26 Jan 2003) | 3 lines
New function r2dtable() and corresponding C function R_r2dtable() for
generating random samples of two-way tables with given marginals.
On Sun, 27 Aug 2006, Kjetil
This is R-2.4.0-to-be, latest development version on windiws, pre-compiled
from CRAN.
I noticed doing
?r2dtable
that r2dtable is placed in package base, where it clearly not belongs,
referring to the
sources it should live in stats. Why it is placed in base?
Kjetil
[[alternative HTML vers