[R] menuRandomSample funciton in S+ -> R?

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Jan 10 09:00:35 CET 2004


It supports the menu system in S-PLUS for Windows, and R doesn't have that
menu system. You don't need it: to sample rows from a data frame use

DF[sample(nrow(DF), size), ]

or something like that.

On Fri, 9 Jan 2004 Phguardiol at aol.com wrote:

> Hi all
> I cannot find the menuRandomSample function, which is available in S+, in R. 
> Does it exist in R ? If so, what is its name ?
> Thanks
> Philippe


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




More information about the R-help mailing list