[R] Making an if condition variable ?

Richard M. Heiberger
Thu, 02 Jun 2016 03:20:52 -0000

a <- 10
CONDITION <-  (a > 0)

if ( CONDITION ) print(" a is bigger" )

On Wed, Jun 1, 2016 at 10:30 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