| <!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: partitionBy</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <link rel="stylesheet" type="text/css" href="R.css" /> |
| |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> |
| <script>hljs.initHighlightingOnLoad();</script> |
| </head><body> |
| |
| <table width="100%" summary="page for partitionBy {SparkR}"><tr><td>partitionBy {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> |
| |
| <h2>partitionBy</h2> |
| |
| <h3>Description</h3> |
| |
| <p>Defines the partitioning columns in a WindowSpec. |
| </p> |
| |
| |
| <h3>Usage</h3> |
| |
| <pre> |
| partitionBy(x, ...) |
| |
| ## S4 method for signature 'WindowSpec' |
| partitionBy(x, col, ...) |
| </pre> |
| |
| |
| <h3>Arguments</h3> |
| |
| <table summary="R argblock"> |
| <tr valign="top"><td><code>x</code></td> |
| <td> |
| <p>a WindowSpec.</p> |
| </td></tr> |
| <tr valign="top"><td><code>...</code></td> |
| <td> |
| <p>additional column(s) to partition on.</p> |
| </td></tr> |
| <tr valign="top"><td><code>col</code></td> |
| <td> |
| <p>a column to partition on (desribed by the name or Column).</p> |
| </td></tr> |
| </table> |
| |
| |
| <h3>Value</h3> |
| |
| <p>A WindowSpec. |
| </p> |
| |
| |
| <h3>Note</h3> |
| |
| <p>partitionBy(WindowSpec) since 2.0.0 |
| </p> |
| |
| |
| <h3>See Also</h3> |
| |
| <p>Other windowspec_method: <code><a href="orderBy.html">orderBy</a></code>, |
| <code><a href="rangeBetween.html">rangeBetween</a></code>, <code><a href="rowsBetween.html">rowsBetween</a></code> |
| </p> |
| |
| |
| <h3>Examples</h3> |
| |
| <pre><code class="r">## Not run: |
| ##D partitionBy(ws, "col1", "col2") |
| ##D partitionBy(ws, df$col1, df$col2) |
| ## End(Not run) |
| </code></pre> |
| |
| |
| <hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.3.2 <a href="00Index.html">Index</a>]</div> |
| </body></html> |