[R] Making an if condition variable ?
Ista Zahn
istazahn at gmail.com
Thu Jun 2 05:06:31 CEST 2016
if ( eval(parse(text=CONDITION ))) print(" a is bigger" )
Best,
Ista
On Jun 1, 2016 10:32 PM, "ce" <zadig_1 at excite.com> wrote:
>
> Dear all,
>
> I want to make an if condition variable like :
>
> a = 10
> CONDITION = " a > 0 "
>
> if ( CONDITION ) print(" a is bigger" )
>
> I tried get , getElement , eval without success ?
>
> Thanks
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list