Re: [R] calling a function with dynamically generated buttons

2009-08-12 Thread Anne Skoeries
Thanks, works just fine! Great! -- Anne Skoeries Am 12.08.2009 um 16:04 schrieb jim holtman: Untested, but try something like this: for(i in 1:(reihen-1)) { but <- tkbutton(base, text = classi[i], command = local({ anzeige <- data.matrix(dataframe[i,-c(spalten)])

Re: [R] calling a function with dynamically generated buttons

2009-08-12 Thread jim holtman
Untested, but try something like this: for(i in 1:(reihen-1)) { but <- tkbutton(base, text = classi[i], command = local({ anzeige <- data.matrix(dataframe[i,-c(spalten)]) namen <- names(anzeige) tit <- paste(classi[i],

[R] calling a function with dynamically generated buttons

2009-08-12 Thread Anne Skoeries
Hallo, I'm dynamically generating buttons depending on the number of rows of my dataframe. Every button is supposed to call a function which generates a plot with the values of one of my dataframe rows. My code looks like this: base <- tktoplevel() plotten <- function(mat, namen, titel) {