gt; Sent: Tuesday, March 27, 2012 11:36 AM
> To: dwinsem...@comcast.net
> Cc: r-help@r-project.org
> Subject: Re: [R] ignore error getting next result
>
>
> I'm sorry. I do appreciate you are trying to help. However, what I am trying
> to do is not
> exactly the same as in FAQ.
or (i in 1:2){
res <- tryCatch(wilcox.test(test1[[i]],test2[[i]])$p.value, error =
function(e) NULL);
}
res
--
David
any other input? anyone?
Thanks,
Lin
CC: r-help@r-project.org
From: dwinsem...@comcast.net
To: bac...@hotmail.com
Subject: Re: [R] ignore error getting next result
Date:
NULL);
}
I cannot get the p-value of the test for i=2.
any other input? anyone?
Thanks,
Lin
CC: r-help@r-project.org
From: dwinsem...@comcast.net
To: bac...@hotmail.com
Subject: Re: [R] ignore error getting next result
Date: Tue, 27 Mar 2012 14:26:40 -0400
On Mar 27, 2012, at 2:18 PM,
> > Subject: Re: [R] ignore error getting next result
> > Date: Tue, 27 Mar 2012 13:40:39 -0400
> >
> >
> > On Mar 27, 2012, at 12:56 PM, C Lin wrote:
> >
> > >
> > > Dear All,
> > >
> > > How do I ignore an error and still getting
As a matter of fact, I did read the FAQ. However, in the FAQ coef() is used to
return the coefficients of lm() if it succeeded.
I cannot find similar function for pvalue.
> CC: r-help@r-project.org
> From: dwinsem...@comcast.net
> To: bac...@hotmail.com
> Subject: Re: [R]
On Mar 27, 2012, at 12:56 PM, C Lin wrote:
Dear All,
How do I ignore an error and still getting result of next iteration.
I am trying to do wilcox.test on a loop, when the test fail, I would
like to continue doing the next iteration and getting the p-value.
I tried to do tryCatch or try but
Dear All,
How do I ignore an error and still getting result of next iteration.
I am trying to do wilcox.test on a loop, when the test fail, I would like to
continue doing the next iteration and getting the p-value.
I tried to do tryCatch or try but I cannot retrieve the p-value if the test is
7 matches
Mail list logo