Re: [R] Object created within a function disappears after the function is run

2013-01-18 Thread mtb954
Hi Sarah, that works perfectly, thank you! Mark Na On Fri, Jan 18, 2013 at 5:23 PM, Sarah Goslee wrote: > Hi, > > You need to assign the result of the function to an object: > > dd1 <- dredgeit(lm1) > > On Fri, Jan 18, 2013 at 6:17 PM, wrote: > > Dear R-helpers, > > > > I have run the code be

[R] Object created within a function disappears after the function is run

2013-01-18 Thread mtb954
Dear R-helpers, I have run the code below which I expected to make an object called dd1, but that object does not exist. So, in summary, my problem is that my function is meant to make an object (dd1), and it does indeed make that object (I know that the last line of the function prints it out) b