Re: [R] Problem executing function

2011-10-12 Thread Divyam
Thanks a lot Duncan! It works fine now. Divya -- View this message in context: http://r.789695.n4.nabble.com/Problem-executing-function-tp3894359p3898054.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing lis

Re: [R] Problem executing function

2011-10-12 Thread Duncan Murdoch
Comments inline below. On 12/10/2011 7:47 AM, Divyam wrote: sorry correction in the first and result hence received code: ok. I tested it in two ways. I want to externalise my odbcConnection details dsn, uid, and pwd. Hence I created a csv file to have these information. Like I showed in the sa

Re: [R] Problem executing function

2011-10-12 Thread Divyam
sorry correction in the first and result hence received code: ok. I tested it in two ways. I want to externalise my odbcConnection details dsn, uid, and pwd. Hence I created a csv file to have these information. Like I showed in the sample function initially, the order of the steps were 1) loading

Re: [R] Problem executing function

2011-10-12 Thread Divyam
ok. I tested it in two ways. I want to externalise my odbcConnection details dsn, uid, and pwd. Hence I created a csv file to have these information. Like I showed in the sample function initially, the order of the steps were 1) loading of the packages, 2) fetching the csv file, 3)assigning the dsn

Re: [R] Problem executing function

2011-10-12 Thread Petr PIKAL
> > Hi Michael, > > Thanks for the reply, but still the problem exists. When I list the objects > and return the result, they get printed on the console but the objects do > not get created. I am really baffled and clueless as to what the problem is. I bet you do not understand basic operati

Re: [R] Problem executing function

2011-10-12 Thread Jim Holtman
show the work you did. what is happening, probably, is that you are returning the values, but not assigning them. Sent from my iPad On Oct 12, 2011, at 3:47, Divyam wrote: > Hi Michael, > > Thanks for the reply, but still the problem exists. When I list the objects > and return the result, t

Re: [R] Problem executing function

2011-10-12 Thread Divyam
Hi Michael, Thanks for the reply, but still the problem exists. When I list the objects and return the result, they get printed on the console but the objects do not get created. I am really baffled and clueless as to what the problem is. Divya -- View this message in context: http://r.789695.

Re: [R] Problem executing function

2011-10-11 Thread R. Michael Weylandt
Sounds like what you were hoping for does happen in the function environment but isn't returned to the global environment. The "proper" fix is to put the values in a list and return() them as the function output. Michael On Oct 11, 2011, at 9:21 AM, Divyam wrote: > Hello All, > > I have a s