Re: [R] Suppressing error messages in a for loop

2008-10-17 Thread Helen Greatrex
try() worked perfectly. Thanks! Helen jim holtman wrote: > ?try > > On Thu, Oct 16, 2008 at 4:46 PM, hgreatrex <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> Is there any way that I can supress error messages so that they don't stop >> for loops running? >> >> I'm using the gstat package and have c

Re: [R] Suppressing error messages in a for loop

2008-10-16 Thread jim holtman
?try On Thu, Oct 16, 2008 at 4:46 PM, hgreatrex <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there any way that I can supress error messages so that they don't stop > for loops running? > > I'm using the gstat package and have created a variogram model for the > double exponential model: > >"dexp

[R] Suppressing error messages in a for loop

2008-10-16 Thread hgreatrex
Hi, Is there any way that I can supress error messages so that they don't stop for loops running? I'm using the gstat package and have created a variogram model for the double exponential model: "dexp <- vgm( .5, "Exp", 10,.1, add.to = vgm(.5, "Exp", 100))" and fitted it using "dexp