[R] tclarray with embedded spaces in data

Ruth M. Ripley ruth at stats.ox.ac.uk
Tue Jan 20 21:07:40 CET 2009


I would like to use a tclArray:

mytkarray <- tclArray()

as the variable for a table:

table1 <- tkwidget(f1, 'table', variable= mytkarray)

but if I include character strings with embedded spaces, I get braces
appearing in the table.

I can remove them using a non-R tclarray, (the difference between the
first example of

http://www.sciviews.org/_rgui/tcltk/Tktable.html

and

http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/tktable.html

- the result of the second of which includes the braces (although not in
the image provided!) and that of the first does not - but this seems
undesirably complicated. Am I missing something simple?

Any insights would be gratefully received,

Regards,

Ruth
--
Ruth M. Ripley,                         Email:ruth at stats.ox.ac.uk
Dept. of Statistics,                    http://www.stats.ox.ac.uk/~ruth/
University of Oxford,                   Tel:   01865 282851
1 South Parks Road, Oxford OX1 3TG, UK  Fax:   01865 272595




More information about the R-help mailing list