Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Dec 18, 2023
1 parent 4a345eb commit ef322ce
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
09e6ac2d
3e7eb5a0
2 changes: 1 addition & 1 deletion data-import.html
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ <h1 class="title"><span id="sec-data-import" class="quarto-section-identifier"><
<span><span class="co">#&gt; # A tibble: 1 × 5</span></span>
<span><span class="co">#&gt; row col expected actual file </span></span>
<span><span class="co">#&gt; &lt;int&gt; &lt;int&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; </span></span>
<span><span class="co">#&gt; 1 3 1 a double . /tmp/RtmpGIUd6W/file2800345544be</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span><span class="co">#&gt; 1 3 1 a double . /tmp/RtmpURAKiA/file1fea2b48e9ad</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>This tells us that there was a problem in row 3, col 1 where readr expected a double but got a <code>.</code>. That suggests this dataset uses <code>.</code> for missing values. So then we set <code>na = "."</code>, the automatic guessing succeeds, giving us the numeric column that we want:</p>
<div class="cell">
Expand Down
22 changes: 11 additions & 11 deletions databases.html
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ <h1 class="title"><span id="sec-import-databases" class="quarto-section-identifi
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="va">diamonds_db</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/tbl.html">tbl</a></span><span class="op">(</span><span class="va">con</span>, <span class="st">"diamonds"</span><span class="op">)</span></span>
<span><span class="va">diamonds_db</span></span>
<span><span class="co">#&gt; # Source: table&lt;diamonds&gt; [?? x 10]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1016-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1018-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; carat cut color clarity depth table price x y z</span></span>
<span><span class="co">#&gt; &lt;dbl&gt; &lt;fct&gt; &lt;fct&gt; &lt;fct&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;int&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt;</span></span>
<span><span class="co">#&gt; 1 0.23 Ideal E SI2 61.5 55 326 3.95 3.98 2.43</span></span>
Expand Down Expand Up @@ -610,7 +610,7 @@ <h1 class="title"><span id="sec-import-databases" class="quarto-section-identifi
<span></span>
<span><span class="va">big_diamonds_db</span></span>
<span><span class="co">#&gt; # Source: SQL [?? x 5]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1016-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1018-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; carat cut color clarity price</span></span>
<span><span class="co">#&gt; &lt;dbl&gt; &lt;fct&gt; &lt;fct&gt; &lt;fct&gt; &lt;int&gt;</span></span>
<span><span class="co">#&gt; 1 1.54 Premium E VS2 15002</span></span>
Expand Down Expand Up @@ -838,15 +838,15 @@ <h1 class="title"><span id="sec-import-databases" class="quarto-section-identifi
<span><span class="co">#&gt; Use `na.rm = TRUE` to silence this warning</span></span>
<span><span class="co">#&gt; This warning is displayed once every 8 hours.</span></span>
<span><span class="co">#&gt; # Source: SQL [?? x 2]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1016-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; dest delay</span></span>
<span><span class="co">#&gt; &lt;chr&gt; &lt;dbl&gt;</span></span>
<span><span class="co">#&gt; 1 SFO 2.67</span></span>
<span><span class="co">#&gt; 2 SJU 2.52</span></span>
<span><span class="co">#&gt; 3 SNA -7.87</span></span>
<span><span class="co">#&gt; 4 SRQ 3.08</span></span>
<span><span class="co">#&gt; 5 CHS 10.6 </span></span>
<span><span class="co">#&gt; 6 SAN 3.14</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1018-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; dest delay</span></span>
<span><span class="co">#&gt; &lt;chr&gt; &lt;dbl&gt;</span></span>
<span><span class="co">#&gt; 1 IAH 4.24 </span></span>
<span><span class="co">#&gt; 2 BQN 8.25 </span></span>
<span><span class="co">#&gt; 3 ATL 11.3 </span></span>
<span><span class="co">#&gt; 4 MCO 5.45 </span></span>
<span><span class="co">#&gt; 5 LAS 0.258</span></span>
<span><span class="co">#&gt; 6 PHX 2.10 </span></span>
<span><span class="co">#&gt; # ℹ more rows</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>If you want to learn more about how <code>NULL</code>s work, you might enjoy “<a href="https://modern-sql.com/concept/three-valued-logic"><em>Three valued logic</em></a>” by Markus Winand.</p>
Expand Down
12 changes: 6 additions & 6 deletions datetimes.html
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ <h1 class="title"><span id="sec-dates-and-times" class="quarto-section-identifie
<p>To get the current date or date-time you can use <code><a href="https://lubridate.tidyverse.org/reference/now.html">today()</a></code> or <code><a href="https://lubridate.tidyverse.org/reference/now.html">now()</a></code>:</p>
<div class="cell">
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">today</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="co">#&gt; [1] "2023-11-29"</span></span>
<span><span class="co">#&gt; [1] "2023-12-18"</span></span>
<span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">now</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="co">#&gt; [1] "2023-11-29 21:11:39 UTC"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span><span class="co">#&gt; [1] "2023-12-18 14:03:53 UTC"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>Otherwise, the following sections describe the four ways you’re likely to create a date/time:</p>
<ul>
Expand Down Expand Up @@ -764,9 +764,9 @@ <h1 class="title"><span id="sec-dates-and-times" class="quarto-section-identifie
<p>You may want to switch between a date-time and a date. That’s the job of <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_datetime()</a></code> and <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_date()</a></code>:</p>
<div class="cell">
<div class="sourceCode" id="cb13"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_datetime</a></span><span class="op">(</span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">today</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co">#&gt; [1] "2023-11-29 UTC"</span></span>
<span><span class="co">#&gt; [1] "2023-12-18 UTC"</span></span>
<span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_date</a></span><span class="op">(</span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">now</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co">#&gt; [1] "2023-11-29"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span><span class="co">#&gt; [1] "2023-12-18"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>Sometimes you’ll get date/times as numeric offsets from the “Unix Epoch”, 1970-01-01. If the offset is in seconds, use <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_datetime()</a></code>; if it’s in days, use <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_date()</a></code>.</p>
<div class="cell">
Expand Down Expand Up @@ -970,12 +970,12 @@ <h1 class="title"><span id="sec-dates-and-times" class="quarto-section-identifie
<div class="sourceCode" id="cb28"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># How old is Hadley?</span></span>
<span><span class="va">h_age</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://lubridate.tidyverse.org/reference/now.html">today</a></span><span class="op">(</span><span class="op">)</span> <span class="op">-</span> <span class="fu"><a href="https://lubridate.tidyverse.org/reference/ymd.html">ymd</a></span><span class="op">(</span><span class="st">"1979-10-14"</span><span class="op">)</span></span>
<span><span class="va">h_age</span></span>
<span><span class="co">#&gt; Time difference of 16117 days</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span><span class="co">#&gt; Time difference of 16136 days</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>A <code>difftime</code> class object records a time span of seconds, minutes, hours, days, or weeks. This ambiguity can make difftimes a little painful to work with, so lubridate provides an alternative which always uses seconds: the <strong>duration</strong>.</p>
<div class="cell">
<div class="sourceCode" id="cb29"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="fu"><a href="https://lubridate.tidyverse.org/reference/as.duration.html">as.duration</a></span><span class="op">(</span><span class="va">h_age</span><span class="op">)</span></span>
<span><span class="co">#&gt; [1] "1392508800s (~44.13 years)"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span><span class="co">#&gt; [1] "1394150400s (~44.18 years)"</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>Durations come with a bunch of convenient constructors:</p>
<div class="cell">
Expand Down
12 changes: 6 additions & 6 deletions iteration.html
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ <h1 class="title"><span id="sec-iteration" class="quarto-section-identifier"><sp
<div class="cell">
<div class="sourceCode" id="cb54"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="va">con</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/tbl.html">tbl</a></span><span class="op">(</span><span class="st">"gapminder"</span><span class="op">)</span></span>
<span><span class="co">#&gt; # Source: table&lt;gapminder&gt; [0 x 6]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1016-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1018-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; # ℹ 6 variables: country &lt;chr&gt;, continent &lt;chr&gt;, lifeExp &lt;dbl&gt;, pop &lt;dbl&gt;,</span></span>
<span><span class="co">#&gt; # gdpPercap &lt;dbl&gt;, year &lt;dbl&gt;</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
Expand All @@ -1301,13 +1301,13 @@ <h1 class="title"><span id="sec-iteration" class="quarto-section-identifier"><sp
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/tbl.html">tbl</a></span><span class="op">(</span><span class="st">"gapminder"</span><span class="op">)</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/count.html">count</a></span><span class="op">(</span><span class="va">year</span><span class="op">)</span></span>
<span><span class="co">#&gt; # Source: SQL [?? x 2]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1016-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; # Database: DuckDB v0.9.2 [unknown@Linux 6.2.0-1018-azure:R 4.3.2/:memory:]</span></span>
<span><span class="co">#&gt; year n</span></span>
<span><span class="co">#&gt; &lt;dbl&gt; &lt;dbl&gt;</span></span>
<span><span class="co">#&gt; 1 1967 142</span></span>
<span><span class="co">#&gt; 2 1977 142</span></span>
<span><span class="co">#&gt; 3 1987 142</span></span>
<span><span class="co">#&gt; 4 2007 142</span></span>
<span><span class="co">#&gt; 1 2007 142</span></span>
<span><span class="co">#&gt; 2 1967 142</span></span>
<span><span class="co">#&gt; 3 1977 142</span></span>
<span><span class="co">#&gt; 4 1987 142</span></span>
<span><span class="co">#&gt; 5 1952 142</span></span>
<span><span class="co">#&gt; 6 1957 142</span></span>
<span><span class="co">#&gt; # ℹ more rows</span></span></code><button title="Copiar para a área de transferência" class="code-copy-button"><i class="bi"></i></button></pre></div>
Expand Down
2 changes: 1 addition & 1 deletion quarto-formats.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"search-submit-button-title": "Enviar",
"search-label": "Procurar"
}
}</script><script defer="" data-domain="r4ds.hadley.nz" src="https://plausible.io/js/plausible.js"></script><script src="site_libs/htmlwidgets-1.6.3/htmlwidgets.js"></script><script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script><link href="site_libs/leaflet-1.3.1/leaflet.css" rel="stylesheet">
}</script><script defer="" data-domain="r4ds.hadley.nz" src="https://plausible.io/js/plausible.js"></script><script src="site_libs/htmlwidgets-1.6.4/htmlwidgets.js"></script><script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script><link href="site_libs/leaflet-1.3.1/leaflet.css" rel="stylesheet">
<script src="site_libs/leaflet-1.3.1/leaflet.js"></script><link href="site_libs/leafletfix-1.0.0/leafletfix.css" rel="stylesheet">
<script src="site_libs/proj4-2.6.2/proj4.min.js"></script><script src="site_libs/Proj4Leaflet-1.0.1/proj4leaflet.js"></script><link href="site_libs/rstudio_leaflet-1.3.1/rstudio_leaflet.css" rel="stylesheet">
<script src="site_libs/leaflet-binding-2.2.1/leaflet.js"></script>
Expand Down
Loading

0 comments on commit ef322ce

Please sign in to comment.