Subramanian S
2012-Apr-10 08:50 UTC
[R] How to display result of a calculation within panel
How do i make rpanel print the value of a calculation in the rpanel itself - in a space just below the submit button? The calculation uses user inputs (using rp.textentry) and takes the values entered as input to the function via function (myRpanel) e.g. myfunction <- function(myRpanel){ z<- myRpanel$x + myRpanel$y return(z) } myRpanel <- rp.control("My new function") rp.textentry(myRpanel, x, myfunction, "x :", initval = 20) rp.textentry(myRpanel, y, myfunction, "y :", initval = 10) rp.button(myRpanel, title = "Submit", action = myfunction) Thank you Subramanian [[alternative HTML version deleted]]