EVOLUTION-MANAGER
Edit File: merge.list.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: Method for merging two lists by name</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 merge.list {RCurl}"><tr><td>merge.list {RCurl}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Method for merging two lists by name</h2> <h3>Description</h3> <p>This is a method that merges the contents of one list with another by adding the named elements in the second that are not in the first. In other words, the first list is the target template, and the second one adds any extra elements that it has. </p> <h3>Usage</h3> <pre> merge.list(x, y, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>the list to which elements will be added</p> </td></tr> <tr valign="top"><td><code>y</code></td> <td> <p>the list which will supply additional elements to <code>x</code> that are not already there by name. </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>not used.</p> </td></tr> </table> <h3>Value</h3> <p>A named list whose name set is the union of the elements in names of x and y and whose values are those taken from y and then with those in x, overwriting if necessary. </p> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>References</h3> <p>Curl homepage <a href="http://curl.haxx.se">http://curl.haxx.se</a></p> <h3>See Also</h3> <p><code><a href="../../base/html/merge.html">merge</a></code></p> <h3>Examples</h3> <pre> ## Not run: # Not exported. merge.list(list(a=1, b = "xyz", c = function(x, y) {x+y}), list(a = 2, z = "a string")) # No values in y merge.list(list(a=1, b = "xyz", c = function(x, y) {x+y}), list()) # No values in x merge.list(list(), list(a=1, b = "xyz", c = function(x, y) {x+y})) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>RCurl</em> version 1.98-1.2 <a href="00Index.html">Index</a>]</div> </body></html>