HH (version 2.2-17)

if.R: Conditional Execution for R or S-Plus

Description

if.R uses the is.R function to determine whether to execute the expression in the r argument or the expression in the s argument.

Usage

if.R(r, s)

Arguments

Value

The result of the executed expression.

Details

Not all functions are in both implementations of the S language. In particular, panel functions for lattice in R (based on grid graphics) are very different from panel functions for trellis (based on the older graphics technology) in S-Plus.

See Also

is.R

Examples

Run this code
if.R(r={"This is R."},
      s={"This is S-Plus"})

Run the code above in your browser using DataCamp Workspace