[R] Building tkentry dynamicly
John Fox
jfox at mcmaster.ca
Tue Mar 7 15:17:38 CET 2006
Dear Sean,
That was Peter Dalgaard's suggestion, posted a little while ago. It's a much
better solution to Alexandre's problem than what I suggested. I'm not sure
that it would work for the Rcmdr dialog that I mentioned, but I'll take a
look when I have a chance.
Regards,
John
--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox
--------------------------------
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Sean Davis
> Sent: Tuesday, March 07, 2006 8:51 AM
> To: John Fox; a.menicacci at fr.fournierpharma.com
> Cc: R-Help
> Subject: Re: [R] Building tkentry dynamicly
>
>
>
>
> On 3/7/06 8:29, "John Fox" <jfox at mcmaster.ca> wrote:
>
> > Dear Alexandre,
> >
> > It is possible to do what you want. Take a look, for
> example, at the
> > dialog box produced by "Statistics -> Contingency tables ->
> Enter and
> > analyze two-way table" in the Rcmdr package. That dialog
> box is able
> > to modify itself and to keep variables for an arbitrary number of
> > tkentry() boxes. It does this by constructing names for the
> variables
> > as text strings, and then using assign() and eval() to set and
> > retrieve values. (Perhaps there's a more elegant way to do
> this.) The
> > code for the function enterTable(), which constructs this
> dialog, is
> > in the file statistics-tables-menu.R in the Rcmdr source package.
>
> I haven't used tcltk enough to comment in any major way, but
> I will ask a question. Couldn't these variables be
> maintained as a list?
>
> Sean
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list