Re: [R] rpanel / list error

2012-03-12 Thread R. Michael Weylandt
My code doesn't give that error so you must have done something differently -- without seeing your code, I can't tell you what though. Also, please cc the list on follow-up if you are seeking further help. I'm not particularly knowledgeable about rpanel and others might be able to give concrete he

Re: [R] rpanel / list error

2012-03-10 Thread R. Michael Weylandt
Your immediate problem seems to be that you use "sum" as a variable name when it is also a function name. You also have scoping issues that result from how you're using with() -- if you don't return an object, it gets thrown away after the with() function is done (part of the functional paradigm) -

Re: [R] rpanel / list error

2012-03-09 Thread jism7690
Hi Michael, Thank you for your reply. I have uploaded the minimum, I have left out the formulas for calculating the amounts as they are not important to the loop. Basically I have a while loop running that adds to the list of values and then outside this loop I have a list called sis, this is the

Re: [R] rpanel / list error

2012-03-09 Thread R. Michael Weylandt
Yes, please upload some code / data (minimal working example). The easiest way to upload data is to use dput() for a plain text representation. Also remember that the majority of R-Helpers don't use Nabble (rather they use an email client directly) so it's easier for us if you put things in the bod

[R] rpanel / list error

2012-03-08 Thread jism7690
Hi All, I have created a simulation that works perfect and I have the results been returned in a list as I have multiple values. I then decided to include some user interaction by using the package rpanel, I now get the error: object of type 'builtin' is not subsettable when I attempted to have