Hi,
I'm writing some R scripts and I would like to grab outputs from R functions
to control if tests. Example, one function outputs something like "p-vale =
0.0765" and I want to program the following pseudo code in R
sig = grep pvalue
if (sig > 0.05)
a()
else
b()
Should I use the grep function of R
(http://stat.ethz.ch/R-manual/R-devel/library/base/html/grep.html
) or is there other easy way to do it?
Regards
Lívio Cipriano
______________________________________________
[email protected] 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.