EVOLUTION-MANAGER
Edit File: tryEval.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Try to evaluate an expression and return a default value if...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for tryEval {rlist}"><tr><td>tryEval {rlist}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Try to evaluate an expression and return a default value if an error occurs or otherwise return its value.</h2> <h3>Description</h3> <p>Try to evaluate an expression and return a default value if an error occurs or otherwise return its value. </p> <h3>Usage</h3> <pre> tryEval(expr, def = NULL) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>expr</code></td> <td> <p>the expression to evaluate</p> </td></tr> <tr valign="top"><td><code>def</code></td> <td> <p>the default value if an error occurs in the evaluation of <code>expr</code></p> </td></tr> </table> <h3>Examples</h3> <pre> x <- list(a=c(x=1,y=2),b=c(x=2,p=3)) list.map(x, tryEval(x+y, NA)) </pre> <hr /><div style="text-align: center;">[Package <em>rlist</em> version 0.4.6.2 <a href="00Index.html">Index</a>]</div> </body></html>