-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Quarto GHA Workflow Runner
committed
Jun 5, 2024
1 parent
85aad30
commit c640233
Showing
12 changed files
with
284 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
09c6edb9 | ||
9c9b93e0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -416,9 +416,9 @@ <h2 class="anchored" data-anchor-id="dplyr-verbs">dplyr verbs</h2> | |
<p>Supported in Databricks Connect v2</p> | ||
<p>Translates into Spark SQL statements</p> | ||
<div class="cell"> | ||
<div class="sourceCode cell-code" id="cb12"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="fu">copy_to</span>(sc, mtcars) <span class="sc">%>%</span></span> | ||
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">mutate</span>(<span class="at">trm =</span> <span class="fu">ifelse</span>(am <span class="sc">==</span> <span class="dv">0</span>, <span class="st">"auto"</span>, <span class="st">"man"</span>)) <span class="sc">%>%</span></span> | ||
<span id="cb12-3"><a href="#cb12-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">group_by</span>(trm) <span class="sc">%>%</span></span> | ||
<div class="sourceCode cell-code" id="cb12"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="fu">copy_to</span>(sc, mtcars) <span class="sc">|></span></span> | ||
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">mutate</span>(<span class="at">trm =</span> <span class="fu">ifelse</span>(am <span class="sc">==</span> <span class="dv">0</span>, <span class="st">"auto"</span>, <span class="st">"man"</span>)) <span class="sc">|></span></span> | ||
<span id="cb12-3"><a href="#cb12-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">group_by</span>(trm) <span class="sc">|></span></span> | ||
<span id="cb12-4"><a href="#cb12-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">summarise_all</span>(mean)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div> | ||
</div> | ||
</section> | ||
|
@@ -474,10 +474,10 @@ <h1>Visualize</h1> | |
<h2 class="anchored" data-anchor-id="dplyr-ggplot2">dplyr + ggplot2</h2> | ||
<p>Supported in Databricks Connect v2</p> | ||
<div class="cell"> | ||
<div class="sourceCode cell-code" id="cb13"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="fu">copy_to</span>(sc, mtcars) <span class="sc">%>%</span></span> | ||
<span id="cb13-2"><a href="#cb13-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">group_by</span>(cyl) <span class="sc">%>%</span></span> | ||
<span id="cb13-3"><a href="#cb13-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">summarise</span>(<span class="at">mpg_m =</span> <span class="fu">mean</span>(mpg)) <span class="sc">%>%</span> <span class="co"># Summarize in Spark</span></span> | ||
<span id="cb13-4"><a href="#cb13-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">collect</span>() <span class="sc">%>%</span> <span class="co"># Collect results in R</span></span> | ||
<div class="sourceCode cell-code" id="cb13"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="fu">copy_to</span>(sc, mtcars) <span class="sc">|></span></span> | ||
<span id="cb13-2"><a href="#cb13-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">group_by</span>(cyl) <span class="sc">|></span></span> | ||
<span id="cb13-3"><a href="#cb13-3" aria-hidden="true" tabindex="-1"></a> <span class="fu">summarise</span>(<span class="at">mpg_m =</span> <span class="fu">mean</span>(mpg)) <span class="sc">|></span> <span class="co"># Summarize in Spark</span></span> | ||
<span id="cb13-4"><a href="#cb13-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">collect</span>() <span class="sc">|></span> <span class="co"># Collect results in R</span></span> | ||
<span id="cb13-5"><a href="#cb13-5" aria-hidden="true" tabindex="-1"></a> <span class="fu">ggplot</span>() <span class="sc">+</span></span> | ||
<span id="cb13-6"><a href="#cb13-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">geom_col</span>(<span class="fu">aes</span>(cyl, mpg_m)) <span class="co"># Create plot</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div> | ||
</div> | ||
|
@@ -607,7 +607,7 @@ <h1>Distributed R</h1> | |
<span id="cb14-5"><a href="#cb14-5" aria-hidden="true" tabindex="-1"></a> )</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div> | ||
</div> | ||
<div class="cell"> | ||
<div class="sourceCode cell-code" id="cb15"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a><span class="fu">copy_to</span>(sc, mtcars) <span class="sc">%>%</span></span> | ||
<div class="sourceCode cell-code" id="cb15"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a><span class="fu">copy_to</span>(sc, mtcars) <span class="sc">|></span></span> | ||
<span id="cb15-2"><a href="#cb15-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">spark_apply</span>(</span> | ||
<span id="cb15-3"><a href="#cb15-3" aria-hidden="true" tabindex="-1"></a> nrow, <span class="co"># R only function</span></span> | ||
<span id="cb15-4"><a href="#cb15-4" aria-hidden="true" tabindex="-1"></a> <span class="at">group_by =</span> <span class="st">"am"</span>, </span> | ||
|
@@ -617,7 +617,7 @@ <h1>Distributed R</h1> | |
<hr> | ||
<p>CC BY SA Posit Software, PBC • <a href="mailto:[email protected]">[email protected]</a> • <a href="https://posit.co">posit.co</a></p> | ||
<p>Learn more at <a href="https://spark.posit.co/">spark.posit.co</a> and <a href="https://therinspark.com/">therinspark.com</a>.</p> | ||
<p>Updated: 2024-05.</p> | ||
<p>Updated: 2024-06.</p> | ||
<div class="cell"> | ||
<div class="sourceCode cell-code" id="cb16"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="fu">packageVersion</span>(<span class="st">"sparklyr"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div> | ||
<div class="cell-output cell-output-stdout"> | ||
|
Oops, something went wrong.