EVOLUTION-MANAGER
Edit File: list.common.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: Get all common cases by expression for a list</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.common {rlist}"><tr><td>list.common {rlist}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get all common cases by expression for a list</h2> <h3>Description</h3> <p>Get all common cases by expression for a list </p> <h3>Usage</h3> <pre> list.common(.data, expr) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>.data</code></td> <td> <p><code>list</code></p> </td></tr> <tr valign="top"><td><code>expr</code></td> <td> <p>An anonymous (or "lambda") expression to determine common cases. If one is not specified, <code>list.common</code> simply returns all identical sub-elements within lists.</p> </td></tr> </table> <h3>Examples</h3> <pre> x <- list(c('a','b','c'),c('a','b'),c('b','c')) list.common(x, .) 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.common(x,type) list.common(x,names(score)) foo <- list(x = LETTERS[1:3], y = LETTERS[3:5]) list.common(foo) </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>