Re: [R] ignore warning messages?

2008-07-06 Thread Hua Li
Thanks a lot, Henrique and Jorge! --- On Tue, 7/1/08, Jorge Ivan Velez [EMAIL PROTECTED] wrote: From: Jorge Ivan Velez [EMAIL PROTECTED] Subject: Re: [R] ignore warning messages? To: [EMAIL PROTECTED] Cc: R-help r-help@r-project.org Date: Tuesday, July 1, 2008, 1:12 PM Dear Hua, Try

[R] ignore warning messages?

2008-07-01 Thread Hua Li
Hi All, I'm working with R and want to ignore the warning messages given, is there a way to stop R from giving out warning messages any more? an example: tt = test as.numeric(tt) would give me the following message: [1] NA Warning message: NAs introduced by coercion I decide to ignore the

Re: [R] ignore warning messages?

2008-07-01 Thread Jorge Ivan Velez
Dear Hua, Try options(warn=-1) tt = test as.numeric(tt) [1] NA See also ?options for more info. HTH, Jorge On Tue, Jul 1, 2008 at 12:11 PM, Hua Li [EMAIL PROTECTED] wrote: Hi All, I'm working with R and want to ignore the warning messages given, is there a way to stop R from giving

Re: [R] ignore warning messages?

2008-07-01 Thread Henrique Dallazuanna
options(warn = -1) or suppressWarnings(as.numeric(test)) On Tue, Jul 1, 2008 at 1:11 PM, Hua Li [EMAIL PROTECTED] wrote: Hi All, I'm working with R and want to ignore the warning messages given, is there a way to stop R from giving out warning messages any more? an example: tt = test