Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.44.0401100755580.18717-100000@gannet.stats>
Date: 2004-01-10T08:00:35Z
From: Brian Ripley
Subject: menuRandomSample funciton in S+ -> R?
In-Reply-To: <6a.3a3e385a.2d30c07f@aol.com>

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