EVOLUTION-MANAGER
Edit File: list.join.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: Join two lists by single or multiple keys</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.join {rlist}"><tr><td>list.join {rlist}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Join two lists by single or multiple keys</h2> <h3>Description</h3> <p>Join two lists by single or multiple keys </p> <h3>Usage</h3> <pre> list.join(x, y, xkey, ykey, ..., keep.order = TRUE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>The first list</p> </td></tr> <tr valign="top"><td><code>y</code></td> <td> <p>The second list</p> </td></tr> <tr valign="top"><td><code>xkey</code></td> <td> <p>A lambda expression that determines the key for list <code>x</code></p> </td></tr> <tr valign="top"><td><code>ykey</code></td> <td> <p>A lambda expression that determines the key for list <code>y</code>, same to <code>xkey</code> if missing</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>The additional parameters passed to <code>merge.data.frame</code></p> </td></tr> <tr valign="top"><td><code>keep.order</code></td> <td> <p>Should the order of <code>x</code> be kept?</p> </td></tr> </table> <h3>Examples</h3> <pre> l1 <- list(p1=list(name='Ken',age=20), p2=list(name='James',age=21), p3=list(name='Jenny',age=20)) l2 <- list(p1=list(name='Jenny',age=20,type='A'), p2=list(name='Ken',age=20,type='B'), p3=list(name='James',age=22,type='A')) list.join(l1, l2, name) list.join(l1, l2, .[c('name','age')]) </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>