EVOLUTION-MANAGER
Edit File: list.take.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: Take a number of elements</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.take {rlist}"><tr><td>list.take {rlist}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Take a number of elements</h2> <h3>Description</h3> <p>Take the first <code>n</code> elements out from a list or vector. </p> <h3>Usage</h3> <pre> list.take(.data, n, force = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>.data</code></td> <td> <p><code>list</code> or <code>vector</code></p> </td></tr> <tr valign="top"><td><code>n</code></td> <td> <p><code>integer</code>. The number of elements to take</p> </td></tr> <tr valign="top"><td><code>force</code></td> <td> <p><code>TRUE</code> to disable the length check</p> </td></tr> </table> <h3>See Also</h3> <p><code><a href="list.takeWhile.html">list.takeWhile</a></code>, <code><a href="list.skip.html">list.skip</a></code>, <code><a href="list.skipWhile.html">list.skipWhile</a></code> </p> <h3>Examples</h3> <pre> x <- list(a=1,b=2,c=3) list.take(x,1) list.take(x,10) </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>