EVOLUTION-MANAGER
Edit File: list.any.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: Examine if a condition is true for at least one list element</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 list.any {rlist}"><tr><td>list.any {rlist}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Examine if a condition is true for at least one list element</h2> <h3>Description</h3> <p>Examine if a condition is true for at least one list element </p> <h3>Usage</h3> <pre> list.any(.data, cond, na.rm = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>.data</code></td> <td> <p>A <code>list</code> or <code>vector</code></p> </td></tr> <tr valign="top"><td><code>cond</code></td> <td> <p>A logical lambda expression</p> </td></tr> <tr valign="top"><td><code>na.rm</code></td> <td> <p>logical. If true <code>NA</code> values are ignored in the evaluation.</p> </td></tr> </table> <h3>Value</h3> <p><code>TRUE</code> if <code>cond</code> is evaluated to be <code>TRUE</code> for any element in <code>.data</code>. </p> <h3>See Also</h3> <p><code><a href="list.all.html">list.all</a></code> </p> <h3>Examples</h3> <pre> x <- list(p1 = list(type='A',score=list(c1=10,c2=8)), p2 = list(type='B',score=list(c1=9,c2=9)), p3 = list(type='B',score=list(c1=9,c2=7))) list.any(x,type=='B') list.any(x,mean(unlist(score))>=6) list.any(x, score$c2 > 8 || score$c3 > 5, na.rm = TRUE) list.any(x, score$c2 > 8 || score$c3 > 5, na.rm = FALSE) </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>