[R] Keyboard input into functions

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Aug 27 09:07:52 CEST 2004

On Fri, 27 Aug 2004, Manoj - Hachibushu Capital wrote:

> ?readline

Yes, but a nearer equivalent to scanf in C is scan() which reads from the 
keyboard by default.

> -----Original Message-----
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Neil Leonard
> Sent: Friday, August 27, 2004 2:04 PM
> Does anybody know if it is possible to have keyboard input into 
> functions? Kind of like 'scanf()' in C.
> I want to write a function that asks me what to put in certain 
> variables.

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