[R] selection list

Greg Snow Greg.Snow at imail.org
Wed Nov 19 17:59:10 CET 2008


One simple way would be to just use the edit function:

> mydata <- edit( data.frame( param1=numeric(0), param2=numeric(0), param3=numeric(0) ) )
> write.table(mydata, 'myfile')

A little more fancy interface could come from using the tkexamp function in the TeachingDemos package (with wait=TRUE).  Or you can create your own gui using the tcltk package or several others.

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of thoeb
> Sent: Wednesday, November 19, 2008 7:03 AM
> To: r-help at r-project.org
> Subject: [R] selection list
>
>
> Hello! I want to create a command for choosing input parameters via a
> new
> window that shows a table in which the parameters can be written in.  R
> should open a seperate window in which the user is asked to put in some
> values (just numbers), afterwards a new file containing these values
> should
> be created and saved in the working directory.
> Does anybody how I can solve that problem and which package I need?
> --
> View this message in context: http://www.nabble.com/selection-list-
> tp20580397p20580397.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list