Hi,

I am using an if else statement inside a function …. If I use that function I 
have no problems …. If I use the function with the if else statement inside a 
second function I get the following waring:

Warning message:
In if (pval == 0) p_value <- "< 2.2e-16" else p_value <- pval :
  the condition has length> 1 and only the first element will be used

Using the second function I get the expected results, with a real p-value even 
if it is extremely small, or "
_________________________________________________________________
[[elided Hotmail spam]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to