[R] Grep functions output
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Mon Aug 5 20:58:15 CEST 2013
If you were to follow the recommendations in the footer of this email, you might get some better options than using grep.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.
"Lívio Cipriano" <lcmail4lists at gmail.com> wrote:
>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
>
>______________________________________________
>R-help at 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.
More information about the R-help
mailing list