Description Usage Arguments Details Value Author(s) See Also Examples

`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.

1 | ```
if.R(r, s)
``` |

`r` |
Any R expression, including a group of expressions nested in braces. Assignments made in this expression are available to the enclosing function. |

`s` |
Any S-Plus expression, including a group of expressions nested in braces. Assignments made in this expression are available to the enclosing function. |

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.

The result of the executed expression.

Richard M. Heiberger <rmh@temple.edu>

1 2 | ```
if.R(r={"This is R."},
s={"This is S-Plus"})
``` |

```
Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS
Attaching package: ‘TH.data’
The following object is masked from ‘package:MASS’:
geyser
Loading required package: gridExtra
[1] "This is R."
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.