EVOLUTION-MANAGER
Edit File: list.save.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: Save a list to a file</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.save {rlist}"><tr><td>list.save {rlist}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Save a list to a file</h2> <h3>Description</h3> <p>Save a list to a file </p> <h3>Usage</h3> <pre> list.save(x, file, type = tools::file_ext(file), ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>The list to save</p> </td></tr> <tr valign="top"><td><code>file</code></td> <td> <p>The file for output</p> </td></tr> <tr valign="top"><td><code>type</code></td> <td> <p>The type of output which, by default, is determined by file extension. Currently supports RData, RDS, JSON, YAML.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Additional parameters passed to the output function</p> </td></tr> </table> <h3>Value</h3> <p><code>x</code> will be returned. </p> <h3>Examples</h3> <pre> ## Not run: x <- lapply(1:5,function(i) data.frame(a=i,b=i^2)) list.save(x, 'list.rds') list.save(x, 'list.rdata') list.save(x, 'list.yaml') list.save(x, 'list.json') ## End(Not run) </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>