EVOLUTION-MANAGER
Edit File: list.expand.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: Create a list from all combinations of factors</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.expand {rlist}"><tr><td>list.expand {rlist}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create a list from all combinations of factors</h2> <h3>Description</h3> <p>Create a list from all combinations of the supplied vectors or lists, extending the functionality of <a href="../../base/html/expand.grid.html">expand.grid</a> from data frame to list. </p> <h3>Usage</h3> <pre> list.expand(...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>...</code></td> <td> <p>vectors or lists</p> </td></tr> </table> <h3>Value</h3> <p>A list of all combinations of the supplied vectors or lists. </p> <h3>Examples</h3> <pre> list.expand(x=1:10, y=c("a","b","c")) list.expand(x=list(c(1,2), c(2,3)), y = c("a","b","c")) list.expand( a=list(list(x=1,y="a"), list(x=2, y="b")), b=list(c("x","y"), c("y","z","w"))) </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>