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 Jul 30, 2024
1 parent 131821b commit b7f5395
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f815185e
3446940a
2 changes: 1 addition & 1 deletion data-transform.html
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ <h1 class="title"><span id="sec-data-transform" class="quarto-section-identifier
<ol type="1">
<li><p>Qual companhia aérea (<em>companhia_aerea</em>) possui a pior média de atrasos? Desafio: você consegue desvendar os efeitos de aeroportos ruins versus companhias aéreas ruins? Por que sim ou por que não? (Dica: experimente usar <code>voos |&gt; group_by(companhia_aerea, destino) |&gt; summarize(n())</code>)</p></li>
<li><p>Ache os vôos que estão mais atrasados no momento da decolagem, a partir de cada destino.</p></li>
<li><p>Como os atrasaso variam ao longo do dia. Ilustre sua resposta com um gráfico.</p></li>
<li><p>Como os atrasos variam ao longo do dia. Ilustre sua resposta com um gráfico.</p></li>
<li><p>O que acontece se você passar um <code>n</code> negativo para <code><a href="https://dplyr.tidyverse.org/reference/slice.html">slice_min()</a></code> e funções similares?</p></li>
<li><p>Explique o que <code><a href="https://dplyr.tidyverse.org/reference/count.html">count()</a></code> faz em termos dos verbos dplyr que você acabou de aprender. O que o argumento <code>sort</code> faz para a função <code><a href="https://dplyr.tidyverse.org/reference/count.html">count()</a></code>?</p></li>
<li>
Expand Down
12 changes: 6 additions & 6 deletions datetimes.html
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,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] "2024-07-29"</span></span>
<span><span class="co">#&gt; [1] "2024-07-30"</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-07-29 10:53:09 -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-07-30 09:30:14 -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>Otherwise, the following sections describe the four ways you’re likely to create a date/time:</p>
<ul>
Expand Down Expand Up @@ -782,9 +782,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] "2024-07-29 UTC"</span></span>
<span><span class="co">#&gt; [1] "2024-07-30 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-07-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] "2024-07-30"</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 @@ -1010,12 +1010,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 16360 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 16361 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] "1413504000s (~44.79 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] "1413590400s (~44.79 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 @@ -1312,12 +1312,12 @@ <h1 class="title"><span id="sec-iteration" class="quarto-section-identifier"><sp
<span><span class="co">#&gt; # Database: DuckDB v0.10.0 [root@Darwin 21.6.0:R 4.3.3/: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 1967 142</span></span>
<span><span class="co">#&gt; 4 2007 142</span></span>
<span><span class="co">#&gt; 5 1952 142</span></span>
<span><span class="co">#&gt; 6 1962 142</span></span>
<span><span class="co">#&gt; 1 1952 142</span></span>
<span><span class="co">#&gt; 2 1957 142</span></span>
<span><span class="co">#&gt; 3 1972 142</span></span>
<span><span class="co">#&gt; 4 1977 142</span></span>
<span><span class="co">#&gt; 5 1987 142</span></span>
<span><span class="co">#&gt; 6 1967 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="writing-csv-files" class="level3" data-number="26.4.2"><h3 data-number="26.4.2" class="anchored" data-anchor-id="writing-csv-files">
Expand Down
Loading

0 comments on commit b7f5395

Please sign in to comment.