subdivide | R Documentation |
Divide a vector or list into parts of (preferably) equal length. Either the length or the number of the parts can be set.
subdivide(x, divs, divlen)
x |
the to-be-divided object. |
divs , divlen |
The number of divisions and the preferred length of divisions.
One and only one of |
A list consisting of x
, divided in parts.
Sercan Kahveci
subdivide(letters, divs=5)
subdivide(1:10, divlen=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.