Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrizmilz committed Nov 17, 2024
1 parent 12b1492 commit e6eca63
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f1762179
8ce5c445
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pt.r4ds.hadley.nz
12 changes: 6 additions & 6 deletions databases.html
Original file line number Diff line number Diff line change
Expand Up @@ -838,12 +838,12 @@ <h1 class="title"><span id="sec-import-databases" class="quarto-section-identifi
<span><span class="co">#&gt; # Database: DuckDB v1.1.0 [root@Darwin 24.0.0:R 4.4.1/:memory:]</span></span>
<span><span class="co">#&gt; destino atraso</span></span>
<span><span class="co">#&gt; &lt;chr&gt; &lt;dbl&gt;</span></span>
<span><span class="co">#&gt; 1 CLT 7.36 </span></span>
<span><span class="co">#&gt; 2 MDW 12.4 </span></span>
<span><span class="co">#&gt; 3 HOU 7.18 </span></span>
<span><span class="co">#&gt; 4 SDF 12.7 </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; 1 SFO 2.67</span></span>
<span><span class="co">#&gt; 2 GSP 15.9 </span></span>
<span><span class="co">#&gt; 3 SJU 2.52</span></span>
<span><span class="co">#&gt; 4 GSO 14.1 </span></span>
<span><span class="co">#&gt; 5 STT -3.84</span></span>
<span><span class="co">#&gt; 6 SAN 3.14</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>Se você quiser saber mais em como o <code>NULL</code> funciona, você irá gostar do artigo “<a href="https://modern-sql.com/concept/three-valued-logic"><em>Three valued logic</em></a>” de 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 @@ -482,9 +482,9 @@ <h1 class="title"><span id="sec-dates-and-times" class="quarto-section-identifie
<p>Para obter a data ou data-hora atual, você pode usar <code><a href="https://lubridate.tidyverse.org/reference/now.html">today()</a></code> ou <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] "2024-11-13"</span></span>
<span><span class="co">#&gt; [1] "2024-11-17"</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] "2024-11-13 23:13:08 -03"</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] "2024-11-17 09:48:15 -03"</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>Caso contrário, as seções a seguir descrevem as quatro maneiras mais prováveis de criar uma data/hora:</p>
<ul>
Expand Down Expand Up @@ -768,9 +768,9 @@ <h1 class="title"><span id="sec-dates-and-times" class="quarto-section-identifie
<p>Você pode querer alternar entre uma data e horário (<em>date-times</em>) e uma data (<em>date</em>). Esse é o trabalho ds funções <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_datetime()</a></code> e <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] "2024-11-13 UTC"</span></span>
<span><span class="co">#&gt; [1] "2024-11-17 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] "2024-11-13"</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] "2024-11-17"</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>Às vezes, você obterá datas/horários como deslocamentos (<em>offsets</em>) numéricos a partir da “Era Unix” (<em>Unix Epoch</em>), 01/01/1970. Se o deslocamento (<em>offset</em>) estiver em segundos, use <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_datetime()</a></code>; se for em dias, use <code><a href="https://lubridate.tidyverse.org/reference/as_date.html">as_date()</a></code>.</p>
<div class="cell">
Expand Down Expand Up @@ -995,12 +995,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"># Quantos anos o Hadley tem?</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 16467 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 16471 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>Um objeto de classe <code>difftime</code> registra um intervalo de tempo de segundos, minutos, horas, dias ou semanas. Essa ambiguidade pode tornar os <em>difftimes</em> um pouco complicados de lidar, então o pacote lubridate fornece uma alternativa que sempre usa segundos: a <strong>duração</strong> (<em>duration</em>).</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] "1422748800s (~45.08 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] "1423094400s (~45.1 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>Durações vêm com um monte de construtores convenientes:</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 @@ -1303,12 +1303,12 @@ <h1 class="title"><span id="sec-iteration" class="quarto-section-identifier"><sp
<span><span class="co">#&gt; # Database: DuckDB v1.1.0 [root@Darwin 24.0.0:R 4.4.1/: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 1977 142</span></span>
<span><span class="co">#&gt; 2 1987 142</span></span>
<span><span class="co">#&gt; 3 2007 142</span></span>
<span><span class="co">#&gt; 4 1962 142</span></span>
<span><span class="co">#&gt; 5 1982 142</span></span>
<span><span class="co">#&gt; 6 1952 142</span></span>
<span><span class="co">#&gt; 1 2007 142</span></span>
<span><span class="co">#&gt; 2 1952 142</span></span>
<span><span class="co">#&gt; 3 1957 142</span></span>
<span><span class="co">#&gt; 4 1972 142</span></span>
<span><span class="co">#&gt; 5 1992 142</span></span>
<span><span class="co">#&gt; 6 1997 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>
</div>
</section><section id="gravando-arquivos-csv" class="level3" data-number="26.4.2"><h3 data-number="26.4.2" class="anchored" data-anchor-id="gravando-arquivos-csv">
Expand Down
8 changes: 4 additions & 4 deletions search.json

Large diffs are not rendered by default.

0 comments on commit e6eca63

Please sign in to comment.