Browse Source

Rebuild everything

master
Lukas Burk 2 years ago
parent
commit
1255005efc
6 changed files with 204 additions and 204 deletions
  1. +1
    -1
      docs/ISSUE_TEMPLATE.html
  2. +151
    -151
      docs/articles/ocarina-of-time-100-.html
  3. BIN
     
  4. BIN
     
  5. +51
    -51
      docs/index.html
  6. +1
    -1
      docs/pkgdown.yml

+ 1
- 1
docs/ISSUE_TEMPLATE.html View File

@@ -117,7 +117,7 @@
<p>Please include a minimal reproducible example (AKA a reprex). If you’ve never heard of a <a href="http://reprex.tidyverse.org/">reprex</a> before, start by reading <a href="https://www.tidyverse.org/help/#reprex" class="uri">https://www.tidyverse.org/help/#reprex</a>.</p>
<hr>
<p>Brief description of the problem</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="co"># insert reprex here</span></a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="co"># insert reprex here</span></code></pre></div>


</div>


+ 151
- 151
docs/articles/ocarina-of-time-100-.html View File

@@ -82,7 +82,7 @@
<h1>Ocarina of Time 100%</h1>
<h4 class="author">Lukas Burk</h4>
<h4 class="date">2018-09-08</h4>
<h4 class="date">2018-09-22</h4>
<small class="dont-index">Source: <a href="https://github.com/jemus42/speedrunr/blob/master/vignettes/ocarina-of-time-100-.Rmd"><code>vignettes/ocarina-of-time-100-.Rmd</code></a></small>
<div class="hidden name"><code>ocarina-of-time-100-.Rmd</code></div>
@@ -96,82 +96,82 @@
<h2 class="hasAnchor">
<a href="#identify-what-you-want" class="anchor"></a>Identify what you want</h2>
<p>First up we need the game’s ID and category ID. That’s easy:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="kw">library</span>(speedrunr)</a>
<a class="sourceLine" id="cb1-2" data-line-number="2"></a>
<a class="sourceLine" id="cb1-3" data-line-number="3"><span class="kw"><a href="../reference/get_games.html">get_games</a></span>(<span class="st">"Ocarina of Time"</span>)</a>
<a class="sourceLine" id="cb1-4" data-line-number="4"><span class="co">#&gt; # A tibble: 7 x 9</span></a>
<a class="sourceLine" id="cb1-5" data-line-number="5"><span class="co">#&gt; id name_internatio… name_twitch name_abbr weblink released </span></a>
<a class="sourceLine" id="cb1-6" data-line-number="6"><span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;date&gt; </span></a>
<a class="sourceLine" id="cb1-7" data-line-number="7"><span class="co">#&gt; 1 j1l9… The Legend of Z… The Legend… oot https:… 1998-11-21</span></a>
<a class="sourceLine" id="cb1-8" data-line-number="8"><span class="co">#&gt; 2 kdkj… The Legend of Z… The Legend… ootmq https:… 2002-01-01</span></a>
<a class="sourceLine" id="cb1-9" data-line-number="9"><span class="co">#&gt; 3 268v… The Legend of Z… The Legend… oot3d https:… 2011-06-16</span></a>
<a class="sourceLine" id="cb1-10" data-line-number="10"><span class="co">#&gt; 4 nd2q… Roblox Ocarina … ROBLOX root https:… 2008-10-24</span></a>
<a class="sourceLine" id="cb1-11" data-line-number="11"><span class="co">#&gt; 5 76rk… Ocarina of Time… The Legend… ootextras https:… 1998-11-21</span></a>
<a class="sourceLine" id="cb1-12" data-line-number="12"><span class="co">#&gt; 6 m1zr… Ocarina of Time… Ocarina of… ootbq https:… 2015-11-13</span></a>
<a class="sourceLine" id="cb1-13" data-line-number="13"><span class="co">#&gt; 7 v1po… SM64: Ocarina o… SM64: Ocar… sm64oot https:… 2018-03-26</span></a>
<a class="sourceLine" id="cb1-14" data-line-number="14"><span class="co">#&gt; # ... with 3 more variables: released_year &lt;int&gt;, romhack &lt;lgl&gt;,</span></a>
<a class="sourceLine" id="cb1-15" data-line-number="15"><span class="co">#&gt; # created &lt;dttm&gt;</span></a></code></pre></div>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw"><a href="../reference/get_categories.html">get_categories</a></span>(<span class="st">"j1l9qz1g"</span>)</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"><span class="co">#&gt; # A tibble: 12 x 6</span></a>
<a class="sourceLine" id="cb2-3" data-line-number="3"><span class="co">#&gt; id name link type miscellaneous rules </span></a>
<a class="sourceLine" id="cb2-4" data-line-number="4"><span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;lgl&gt; &lt;chr&gt; </span></a>
<a class="sourceLine" id="cb2-5" data-line-number="5"><span class="co">#&gt; 1 q255j… 100% https://www.s… per-g… FALSE "**100% Rules**:\r\…</span></a>
<a class="sourceLine" id="cb2-6" data-line-number="6"><span class="co">#&gt; 2 824qn… 100% https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-7" data-line-number="7"><span class="co">#&gt; 3 zdnoz… All Du… https://www.s… per-g… FALSE "**All Dungeons Rul…</span></a>
<a class="sourceLine" id="cb2-8" data-line-number="8"><span class="co">#&gt; 4 z275w… Any% https://www.s… per-g… FALSE "**Any% Rules**:\r\…</span></a>
<a class="sourceLine" id="cb2-9" data-line-number="9"><span class="co">#&gt; 5 02qe4… Any% https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-10" data-line-number="10"><span class="co">#&gt; 6 9kvr8… Ganonl… https://www.s… per-g… TRUE "**Ganonless Rules*…</span></a>
<a class="sourceLine" id="cb2-11" data-line-number="11"><span class="co">#&gt; 7 zd35j… Glitch… https://www.s… per-g… FALSE "" </span></a>
<a class="sourceLine" id="cb2-12" data-line-number="12"><span class="co">#&gt; 8 ndxlw… Glitch… https://www.s… per-l… FALSE "General Rules:\r\n…</span></a>
<a class="sourceLine" id="cb2-13" data-line-number="13"><span class="co">#&gt; 9 jdrwr… MST https://www.s… per-g… FALSE "**Medallions/Stone…</span></a>
<a class="sourceLine" id="cb2-14" data-line-number="14"><span class="co">#&gt; 10 9d85y… No IM/… https://www.s… per-g… FALSE "**No IM/WW Rules**…</span></a>
<a class="sourceLine" id="cb2-15" data-line-number="15"><span class="co">#&gt; 11 xd1wj… No Wro… https://www.s… per-g… TRUE "**No Wrong Warp Ru…</span></a>
<a class="sourceLine" id="cb2-16" data-line-number="16"><span class="co">#&gt; 12 rklm8… Restri… https://www.s… per-l… TRUE "General Rules:\r\n…</span></a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(speedrunr)
<span class="kw"><a href="../reference/get_games.html">get_games</a></span>(<span class="st">"Ocarina of Time"</span>)
<span class="co">#&gt; # A tibble: 7 x 9</span>
<span class="co">#&gt; id name_internatio… name_twitch name_abbr weblink released </span>
<span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;date&gt; </span>
<span class="co">#&gt; 1 j1l9… The Legend of Z… The Legend… oot https:… 1998-11-21</span>
<span class="co">#&gt; 2 kdkj… The Legend of Z… The Legend… ootmq https:… 2002-01-01</span>
<span class="co">#&gt; 3 268v… The Legend of Z… The Legend… oot3d https:… 2011-06-16</span>
<span class="co">#&gt; 4 nd2q… Roblox Ocarina … ROBLOX root https:… 2008-10-24</span>
<span class="co">#&gt; 5 76rk… Ocarina of Time… The Legend… ootextras https:… 1998-11-21</span>
<span class="co">#&gt; 6 m1zr… Ocarina of Time… Ocarina of… ootbq https:… 2015-11-13</span>
<span class="co">#&gt; 7 v1po… SM64: Ocarina o… SM64: Ocar… sm64oot https:… 2018-03-26</span>
<span class="co">#&gt; # ... with 3 more variables: released_year &lt;int&gt;, romhack &lt;lgl&gt;,</span>
<span class="co">#&gt; # created &lt;dttm&gt;</span></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw"><a href="../reference/get_categories.html">get_categories</a></span>(<span class="st">"j1l9qz1g"</span>)
<span class="co">#&gt; # A tibble: 12 x 6</span>
<span class="co">#&gt; id name link type miscellaneous rules </span>
<span class="co">#&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;lgl&gt; &lt;chr&gt; </span>
<span class="co">#&gt; 1 q255j… 100% https://www.s… per-g… FALSE "**100% Rules**:\r\…</span>
<span class="co">#&gt; 2 824qn… 100% https://www.s… per-l… FALSE "General Rules:\r\n…</span>
<span class="co">#&gt; 3 zdnoz… All Du… https://www.s… per-g… FALSE "**All Dungeons Rul…</span>
<span class="co">#&gt; 4 z275w… Any% https://www.s… per-g… FALSE "**Any% Rules**:\r\…</span>
<span class="co">#&gt; 5 02qe4… Any% https://www.s… per-l… FALSE "General Rules:\r\n…</span>
<span class="co">#&gt; 6 9kvr8… Ganonl… https://www.s… per-g… TRUE "**Ganonless Rules*…</span>
<span class="co">#&gt; 7 zd35j… Glitch… https://www.s… per-g… FALSE "" </span>
<span class="co">#&gt; 8 ndxlw… Glitch… https://www.s… per-l… FALSE "General Rules:\r\n…</span>
<span class="co">#&gt; 9 jdrwr… MST https://www.s… per-g… FALSE "**Medallions/Stone…</span>
<span class="co">#&gt; 10 9d85y… No IM/… https://www.s… per-g… FALSE "**No IM/WW Rules**…</span>
<span class="co">#&gt; 11 xd1wj… No Wro… https://www.s… per-g… TRUE "**No Wrong Warp Ru…</span>
<span class="co">#&gt; 12 rklm8… Restri… https://www.s… per-l… TRUE "General Rules:\r\n…</span></code></pre></div>
<p>So we’re good.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1">game &lt;-<span class="st"> "j1l9qz1g"</span></a>
<a class="sourceLine" id="cb3-2" data-line-number="2">category &lt;-<span class="st"> "q255jw2o"</span></a>
<a class="sourceLine" id="cb3-3" data-line-number="3"></a>
<a class="sourceLine" id="cb3-4" data-line-number="4">oot100 &lt;-<span class="st"> </span><span class="kw"><a href="../reference/get_runs.html">get_runs</a></span>(<span class="dt">game =</span> <span class="st">"j1l9qz1g"</span>, <span class="dt">category =</span> <span class="st">"q255jw2o"</span>, <span class="dt">max =</span> <span class="ot">Inf</span>)</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">game &lt;-<span class="st"> "j1l9qz1g"</span>
category &lt;-<span class="st"> "q255jw2o"</span>
oot100 &lt;-<span class="st"> </span><span class="kw"><a href="../reference/get_runs.html">get_runs</a></span>(<span class="dt">game =</span> <span class="st">"j1l9qz1g"</span>, <span class="dt">category =</span> <span class="st">"q255jw2o"</span>, <span class="dt">max =</span> <span class="ot">Inf</span>)</code></pre></div>
<p>Note that I’m useing <code>max = Inf</code> to make sure I get <em>all</em> the runs.</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="kw">str</span>(oot100)</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"><span class="co">#&gt; Classes 'tbl_df', 'tbl' and 'data.frame': 529 obs. of 22 variables:</span></a>
<a class="sourceLine" id="cb4-3" data-line-number="3"><span class="co">#&gt; $ id : chr "mr8161dy" "mk9geg1z" "ywpq40nz" "zx4g9e5y" ...</span></a>
<a class="sourceLine" id="cb4-4" data-line-number="4"><span class="co">#&gt; $ weblink : chr "https://www.speedrun.com/oot/run/mr8161dy" "https://www.speedrun.com/oot/run/mk9geg1z" "https://www.speedrun.com/oot/run/ywpq40nz" "https://www.speedrun.com/oot/run/zx4g9e5y" ...</span></a>
<a class="sourceLine" id="cb4-5" data-line-number="5"><span class="co">#&gt; $ game : chr "j1l9qz1g" "j1l9qz1g" "j1l9qz1g" "j1l9qz1g" ...</span></a>
<a class="sourceLine" id="cb4-6" data-line-number="6"><span class="co">#&gt; $ level : logi NA NA NA NA NA NA ...</span></a>
<a class="sourceLine" id="cb4-7" data-line-number="7"><span class="co">#&gt; $ category : chr "q255jw2o" "q255jw2o" "q255jw2o" "q255jw2o" ...</span></a>
<a class="sourceLine" id="cb4-8" data-line-number="8"><span class="co">#&gt; $ videos : chr "https://www.twitch.tv/videos/307404183" "https://www.twitch.tv/videos/307403446" "https://www.twitch.tv/videos/210528062" "https://www.twitch.tv/videos/305356297" ...</span></a>
<a class="sourceLine" id="cb4-9" data-line-number="9"><span class="co">#&gt; $ status : chr "verified" "verified" "verified" "verified" ...</span></a>
<a class="sourceLine" id="cb4-10" data-line-number="10"><span class="co">#&gt; $ comment : chr "Soooo bad Dampe" "Sooooo bad Dampe" "Wrote my own route. Terrible, but fun." "first run, 25th try dampe. split 2.7 seconds early so i added that time to final split." ...</span></a>
<a class="sourceLine" id="cb4-11" data-line-number="11"><span class="co">#&gt; $ player_id : chr "68wq9z8g" "68wq9z8g" "v8lvg2jm" "dx3pgkk8" ...</span></a>
<a class="sourceLine" id="cb4-12" data-line-number="12"><span class="co">#&gt; $ player_url : chr "https://www.speedrun.com/user/Cma" "https://www.speedrun.com/user/Cma" "https://www.speedrun.com/user/adefgames" "https://www.speedrun.com/user/11brendon" ...</span></a>
<a class="sourceLine" id="cb4-13" data-line-number="13"><span class="co">#&gt; $ player_name : chr "Cma" "Cma" "adefgames" "11brendon" ...</span></a>
<a class="sourceLine" id="cb4-14" data-line-number="14"><span class="co">#&gt; $ player_role : chr "user" "user" "user" "user" ...</span></a>
<a class="sourceLine" id="cb4-15" data-line-number="15"><span class="co">#&gt; $ player_signup : POSIXct, format: "2015-02-20 17:09:08" "2015-02-20 17:09:08" ...</span></a>
<a class="sourceLine" id="cb4-16" data-line-number="16"><span class="co">#&gt; $ date : Date, format: "2018-09-08" "2018-09-08" ...</span></a>
<a class="sourceLine" id="cb4-17" data-line-number="17"><span class="co">#&gt; $ submitted : POSIXct, format: "2018-09-08 10:43:58" "2018-09-08 10:40:08" ...</span></a>
<a class="sourceLine" id="cb4-18" data-line-number="18"><span class="co">#&gt; $ time_primary : int 15848 15848 25479 24707 20589 14499 14990 15014 14877 19485 ...</span></a>
<a class="sourceLine" id="cb4-19" data-line-number="19"><span class="co">#&gt; $ time_realtime : int 15848 15848 25479 24707 20589 14499 14990 15014 14877 19485 ...</span></a>
<a class="sourceLine" id="cb4-20" data-line-number="20"><span class="co">#&gt; $ time_ingame : int 0 0 0 0 0 0 0 0 0 0 ...</span></a>
<a class="sourceLine" id="cb4-21" data-line-number="21"><span class="co">#&gt; $ time_hms : 'hms' num 04:24:08 04:24:08 07:04:39 06:51:47 ...</span></a>
<a class="sourceLine" id="cb4-22" data-line-number="22"><span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span></a>
<a class="sourceLine" id="cb4-23" data-line-number="23"><span class="co">#&gt; $ system_platform: chr "nzelreqp" "nzelreqp" "nzelreqp" "nzelreqp" ...</span></a>
<a class="sourceLine" id="cb4-24" data-line-number="24"><span class="co">#&gt; $ system_emulated: logi FALSE FALSE FALSE FALSE TRUE FALSE ...</span></a>
<a class="sourceLine" id="cb4-25" data-line-number="25"><span class="co">#&gt; $ system_region : chr "o316x197" "o316x197" "o316x197" "o316x197" ...</span></a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">str</span>(oot100)
<span class="co">#&gt; Classes 'tbl_df', 'tbl' and 'data.frame': 535 obs. of 22 variables:</span>
<span class="co">#&gt; $ id : chr "zx4gejqy" "y2qx61jy" "z03rkvoz" "yvj17p6y" ...</span>
<span class="co">#&gt; $ weblink : chr "https://www.speedrun.com/oot/run/zx4gejqy" "https://www.speedrun.com/oot/run/y2qx61jy" "https://www.speedrun.com/oot/run/z03rkvoz" "https://www.speedrun.com/oot/run/yvj17p6y" ...</span>
<span class="co">#&gt; $ game : chr "j1l9qz1g" "j1l9qz1g" "j1l9qz1g" "j1l9qz1g" ...</span>
<span class="co">#&gt; $ level : logi NA NA NA NA NA NA ...</span>
<span class="co">#&gt; $ category : chr "q255jw2o" "q255jw2o" "q255jw2o" "q255jw2o" ...</span>
<span class="co">#&gt; $ videos : chr "https://www.youtube.com/watch?v=l_m6TKaZhQE" "https://www.twitch.tv/videos/310354385" "https://www.twitch.tv/videos/310313258" "https://www.twitch.tv/videos/309881127" ...</span>
<span class="co">#&gt; $ status : chr "verified" "verified" "verified" "verified" ...</span>
<span class="co">#&gt; $ comment : chr NA "I got to the top 100! Its a big milestone for me!\r\n6th try Dampe and my superslides need A LOT of work. But o"| __truncated__ "4th try dampe.\r\nFailed Collapse skip. really bad" "Terrible Run" ...</span>
<span class="co">#&gt; $ player_id : chr "v819rrxp" "kj9r4qnj" "68wq9z8g" "kj9r4qnj" ...</span>
<span class="co">#&gt; $ player_url : chr "https://www.speedrun.com/user/Marco" "https://www.speedrun.com/user/Hsarlo_Christian" "https://www.speedrun.com/user/Cma" "https://www.speedrun.com/user/Hsarlo_Christian" ...</span>
<span class="co">#&gt; $ player_name : chr "Marco" "Hsarlo_Christian" "Cma" "Hsarlo_Christian" ...</span>
<span class="co">#&gt; $ player_role : chr "user" "user" "user" "user" ...</span>
<span class="co">#&gt; $ player_signup : POSIXct, format: "2015-02-17 18:25:39" "2016-10-29 07:59:09" ...</span>
<span class="co">#&gt; $ date : Date, format: "2018-09-17" "2018-09-15" ...</span>
<span class="co">#&gt; $ submitted : POSIXct, format: "2018-09-17 12:49:58" "2018-09-15 10:32:25" ...</span>
<span class="co">#&gt; $ time_primary : int 14447 20884 15577 22987 14824 22265 15848 15848 25479 24707 ...</span>
<span class="co">#&gt; $ time_realtime : int 14447 20884 15577 22987 14824 22265 15848 15848 25479 24707 ...</span>
<span class="co">#&gt; $ time_ingame : int 0 0 0 0 0 0 0 0 0 0 ...</span>
<span class="co">#&gt; $ time_hms : 'hms' num 04:00:47 05:48:04 04:19:37 06:23:07 ...</span>
<span class="co">#&gt; ..- attr(*, "units")= chr "secs"</span>
<span class="co">#&gt; $ system_platform: chr "nzelreqp" "w89rwelk" "nzelreqp" "w89rwelk" ...</span>
<span class="co">#&gt; $ system_emulated: logi FALSE FALSE FALSE FALSE FALSE FALSE ...</span>
<span class="co">#&gt; $ system_region : chr "o316x197" "o316x197" "o316x197" "o316x197" ...</span></code></pre></div>
<p>We want some additional data:</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1"><span class="kw">library</span>(dplyr)</a>
<a class="sourceLine" id="cb5-2" data-line-number="2"><span class="kw">library</span>(knitr)</a>
<a class="sourceLine" id="cb5-3" data-line-number="3"></a>
<a class="sourceLine" id="cb5-4" data-line-number="4">oot100 &lt;-<span class="st"> </span>oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-5" data-line-number="5"><span class="st"> </span><span class="kw"><a href="../reference/add_miscdata.html">add_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-6" data-line-number="6"><span class="st"> </span><span class="kw"><a href="../reference/add_miscdata.html">add_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-7" data-line-number="7"><span class="st"> </span><span class="kw"><a href="../reference/find_records.html">find_records</a></span>()</a>
<a class="sourceLine" id="cb5-8" data-line-number="8"></a>
<a class="sourceLine" id="cb5-9" data-line-number="9">oot100 <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb5-10" data-line-number="10"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span>(time_hms) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-11" data-line-number="11"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(time_hms, player_name, date, system_platform, system_region) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-12" data-line-number="12"><span class="st"> </span><span class="kw">head</span>(<span class="dv">10</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb5-13" data-line-number="13"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(dplyr)
<span class="kw">library</span>(knitr)
oot100 &lt;-<span class="st"> </span>oot100 <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="../reference/add_miscdata.html">add_platforms</a></span>() <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="../reference/add_miscdata.html">add_regions</a></span>() <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="../reference/find_records.html">find_records</a></span>()
oot100 <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span>(time_hms) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(time_hms, player_name, date, system_platform, system_region) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw">head</span>(<span class="dv">10</span>) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">time_hms</th>
@@ -196,58 +196,58 @@
<td align="left">JPN / NTSC</td>
</tr>
<tr class="odd">
<td align="left">04:00:47</td>
<td align="left">Marco</td>
<td align="left">2018-09-17</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
<tr class="even">
<td align="left">04:01:05</td>
<td align="left">zfg</td>
<td align="left">2018-07-27</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
<tr class="even">
<tr class="odd">
<td align="left">04:01:39</td>
<td align="left">Marco</td>
<td align="left">2018-09-01</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
<tr class="odd">
<tr class="even">
<td align="left">04:03:24</td>
<td align="left">zfg</td>
<td align="left">2018-07-21</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
<tr class="even">
<tr class="odd">
<td align="left">04:03:40</td>
<td align="left">Marco</td>
<td align="left">2018-08-04</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
<tr class="odd">
<tr class="even">
<td align="left">04:05:28</td>
<td align="left">zfg</td>
<td align="left">2018-06-20</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
<tr class="even">
<td align="left">04:07:23</td>
<td align="left">Marco</td>
<td align="left">2018-07-25</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
<tr class="odd">
<td align="left">04:07:57</td>
<td align="left">Bonooru</td>
<td align="left">2018-08-23</td>
<td align="left">04:07:04</td>
<td align="left">MasterMonk1991</td>
<td align="left">2018-09-09</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
<tr class="even">
<td align="left">04:07:59</td>
<td align="left">zfg</td>
<td align="left">2018-06-18</td>
<td align="left">04:07:23</td>
<td align="left">Marco</td>
<td align="left">2018-07-25</td>
<td align="left">Wii Virtual Console</td>
<td align="left">JPN / NTSC</td>
</tr>
@@ -258,69 +258,69 @@
<h2 class="hasAnchor">
<a href="#category-overview" class="anchor"></a>Category Overview</h2>
<p>Now we can take a look at the categories (recent) history, with highlighted records:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="kw">library</span>(ggplot2)</a>
<a class="sourceLine" id="cb6-2" data-line-number="2"><span class="kw">library</span>(ggrepel)</a>
<a class="sourceLine" id="cb6-3" data-line-number="3"><span class="kw">library</span>(hrbrthemes)</a>
<a class="sourceLine" id="cb6-4" data-line-number="4"><span class="kw">library</span>(hms)</a>
<a class="sourceLine" id="cb6-5" data-line-number="5"></a>
<a class="sourceLine" id="cb6-6" data-line-number="6">oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-7" data-line-number="7"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(time_hms <span class="op">&lt;</span><span class="st"> </span>hms<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">hours =</span> <span class="dv">6</span>)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-8" data-line-number="8"><span class="st"> </span>{</a>
<a class="sourceLine" id="cb6-9" data-line-number="9"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/ggplot">ggplot</a></span>(., <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(date, time_hms)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-10" data-line-number="10"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">1</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-11" data-line-number="11"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">2</span>, <span class="dt">data =</span> <span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(., record), <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">color =</span> player_name)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-12" data-line-number="12"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggrepel/topics/geom_text_repel">geom_label_repel</a></span>(<span class="dt">data =</span> <span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(., record),</a>
<a class="sourceLine" id="cb6-13" data-line-number="13"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">label =</span> time_hms, <span class="dt">color =</span> player_name),</a>
<a class="sourceLine" id="cb6-14" data-line-number="14"> <span class="dt">fill =</span> <span class="st">"white"</span>, <span class="dt">show.legend =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-15" data-line-number="15"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_x_date</a></span>(<span class="dt">date_breaks =</span> <span class="st">"6 months"</span>, <span class="dt">date_labels =</span> <span class="st">"%b '%y"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-16" data-line-number="16"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_y_time</a></span>(<span class="dt">breaks =</span> <span class="kw">seq</span>(<span class="dv">2</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">3</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>),</a>
<a class="sourceLine" id="cb6-17" data-line-number="17"> <span class="dt">minor_breaks =</span> <span class="kw">seq</span>(<span class="dv">2</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">5</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span>)) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-18" data-line-number="18"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_color_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-19" data-line-number="19"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/labs">labs</a></span>(<span class="dt">title =</span> <span class="st">"Ocarina of Time: 100% Speedrun Record History"</span>,</a>
<a class="sourceLine" id="cb6-20" data-line-number="20"> <span class="dt">subtitle =</span> <span class="kw">paste0</span>(<span class="st">"All data from speedrun.com (n = "</span>, <span class="kw">nrow</span>(.), <span class="st">")"</span>),</a>
<a class="sourceLine" id="cb6-21" data-line-number="21"> <span class="dt">x =</span> <span class="st">"Date of Run"</span>, <span class="dt">y =</span> <span class="st">"Time"</span>,</a>
<a class="sourceLine" id="cb6-22" data-line-number="22"> <span class="dt">color =</span> <span class="st">"Runner"</span>, <span class="dt">caption =</span> <span class="st">"Data limited to sub 6h runs"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb6-23" data-line-number="23"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/hrbrthemes/topics/theme_ipsum">theme_ipsum</a></span>() <span class="op">+</span></a>
<a class="sourceLine" id="cb6-24" data-line-number="24"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/theme">theme</a></span>(<span class="dt">legend.position =</span> <span class="st">"top"</span>)</a>
<a class="sourceLine" id="cb6-25" data-line-number="25"> }</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(ggplot2)
<span class="kw">library</span>(ggrepel)
<span class="kw">library</span>(hrbrthemes)
<span class="kw">library</span>(hms)
oot100 <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(time_hms <span class="op">&lt;</span><span class="st"> </span>hms<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">hours =</span> <span class="dv">6</span>)) <span class="op">%&gt;%</span>
<span class="st"> </span>{
<span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/ggplot">ggplot</a></span>(., <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(date, time_hms)) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">1</span>, <span class="dt">alpha =</span> .<span class="dv">75</span>) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">2</span>, <span class="dt">data =</span> <span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(., record), <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">color =</span> player_name)) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggrepel/topics/geom_text_repel">geom_label_repel</a></span>(<span class="dt">data =</span> <span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(., record),
<span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">label =</span> time_hms, <span class="dt">color =</span> player_name),
<span class="dt">fill =</span> <span class="st">"white"</span>, <span class="dt">show.legend =</span> F) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_x_date</a></span>(<span class="dt">date_breaks =</span> <span class="st">"6 months"</span>, <span class="dt">date_labels =</span> <span class="st">"%b '%y"</span>) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_y_time</a></span>(<span class="dt">breaks =</span> <span class="kw">seq</span>(<span class="dv">2</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">3</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>),
<span class="dt">minor_breaks =</span> <span class="kw">seq</span>(<span class="dv">2</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">5</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span>)) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_color_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/labs">labs</a></span>(<span class="dt">title =</span> <span class="st">"Ocarina of Time: 100% Speedrun Record History"</span>,
<span class="dt">subtitle =</span> <span class="kw">paste0</span>(<span class="st">"All data from speedrun.com (n = "</span>, <span class="kw">nrow</span>(.), <span class="st">")"</span>),
<span class="dt">x =</span> <span class="st">"Date of Run"</span>, <span class="dt">y =</span> <span class="st">"Time"</span>,
<span class="dt">color =</span> <span class="st">"Runner"</span>, <span class="dt">caption =</span> <span class="st">"Data limited to sub 6h runs"</span>) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/hrbrthemes/topics/theme_ipsum">theme_ipsum</a></span>() <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/theme">theme</a></span>(<span class="dt">legend.position =</span> <span class="st">"top"</span>)
}</code></pre></div>
<p><img src="ocarina-of-time-100-_files/figure-html/oot_100_overview-1.png" width="768"></p>
<p>Please note that the data on speedrun.com does <em>not</em> cover the whole history. There are lots of older runs missing here, and unless the mods come together und do some historic backlogging, that’s as good as it gets for now.</p>
<p>We can also take a look at the recent developments:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1"><span class="kw">library</span>(lubridate)</a>
<a class="sourceLine" id="cb7-2" data-line-number="2"></a>
<a class="sourceLine" id="cb7-3" data-line-number="3">tmp &lt;-<span class="st"> </span>oot100 <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-4" data-line-number="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(time_hms <span class="op">&lt;</span><span class="st"> </span>hms<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">hours =</span> <span class="dv">4</span>, <span class="dt">minutes =</span> <span class="dv">30</span>),</a>
<a class="sourceLine" id="cb7-5" data-line-number="5"> date <span class="op">&gt;=</span><span class="st"> </span><span class="kw"><a href="http://lubridate.tidyverse.org/reference/ymd.html">ymd</a></span>(<span class="st">"2018-01-01"</span>)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-6" data-line-number="6"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(player_name, time_hms, date)</a>
<a class="sourceLine" id="cb7-7" data-line-number="7"></a>
<a class="sourceLine" id="cb7-8" data-line-number="8"><span class="kw"><a href="http://dplyr.tidyverse.org/reference/bind.html">bind_rows</a></span>(</a>
<a class="sourceLine" id="cb7-9" data-line-number="9"> tmp,</a>
<a class="sourceLine" id="cb7-10" data-line-number="10"> tmp <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-11" data-line-number="11"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(player_name) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-12" data-line-number="12"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/summarise.html">summarize</a></span>(<span class="dt">time_hms =</span> <span class="kw">min</span>(time_hms), <span class="dt">date =</span> <span class="kw"><a href="http://lubridate.tidyverse.org/reference/today.html">today</a></span>()) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-13" data-line-number="13"><span class="st"> </span>ungroup</a>
<a class="sourceLine" id="cb7-14" data-line-number="14">) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-15" data-line-number="15"><span class="st"> </span>{</a>
<a class="sourceLine" id="cb7-16" data-line-number="16"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/ggplot">ggplot</a></span>(., <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(date, time_hms, <span class="dt">color =</span> player_name, <span class="dt">fill =</span> player_name)) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-17" data-line-number="17"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">1</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-18" data-line-number="18"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_path">geom_step</a></span>() <span class="op">+</span></a>
<a class="sourceLine" id="cb7-19" data-line-number="19"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggrepel/topics/geom_text_repel">geom_label_repel</a></span>(<span class="dt">data =</span> .</a>
<a class="sourceLine" id="cb7-20" data-line-number="20"> <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(player_name) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-21" data-line-number="21"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/summarise.html">summarize</a></span>(<span class="dt">y =</span> <span class="kw">min</span>(time_hms), <span class="dt">x =</span> <span class="kw">max</span>(date)),</a>
<a class="sourceLine" id="cb7-22" data-line-number="22"> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">label =</span> <span class="kw">paste0</span>(player_name, <span class="st">": "</span>, y), <span class="dt">x =</span> x, <span class="dt">y =</span> y),</a>
<a class="sourceLine" id="cb7-23" data-line-number="23"> <span class="dt">color =</span> <span class="st">"black"</span>, <span class="dt">alpha =</span> <span class="fl">.75</span>, <span class="dt">show.legend =</span> F,</a>
<a class="sourceLine" id="cb7-24" data-line-number="24"> <span class="dt">hjust =</span> <span class="dv">1</span>, <span class="dt">direction =</span> <span class="st">"y"</span>, <span class="dt">nudge_x =</span> <span class="dv">60</span><span class="op">^</span><span class="dv">2</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-25" data-line-number="25"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_x_date</a></span>(<span class="dt">date_breaks =</span> <span class="st">"1 month"</span>, <span class="dt">date_labels =</span> <span class="st">"%b '%y"</span>,</a>
<a class="sourceLine" id="cb7-26" data-line-number="26"> <span class="dt">limits =</span> <span class="kw">c</span>(<span class="kw">as.Date</span>(<span class="ot">NA</span>), <span class="kw"><a href="http://lubridate.tidyverse.org/reference/today.html">today</a></span>() <span class="op">+</span><span class="st"> </span><span class="kw"><a href="http://lubridate.tidyverse.org/reference/period.html">days</a></span>(<span class="dv">45</span>))) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-27" data-line-number="27"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_y_time</a></span>(<span class="dt">breaks =</span> <span class="kw">seq</span>(<span class="dv">0</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">12</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>),</a>
<a class="sourceLine" id="cb7-28" data-line-number="28"> <span class="dt">minor_breaks =</span> <span class="kw">seq</span>(<span class="dv">0</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">24</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span>)) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-29" data-line-number="29"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_color_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>, <span class="dt">guide =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-30" data-line-number="30"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_fill_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>, <span class="dt">guide =</span> F) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-31" data-line-number="31"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/labs">labs</a></span>(<span class="dt">title =</span> <span class="st">"Ocarina of Time: 100% Speedruns in 2018"</span>,</a>
<a class="sourceLine" id="cb7-32" data-line-number="32"> <span class="dt">subtitle =</span> <span class="st">"All data from speedrun.com"</span>,</a>
<a class="sourceLine" id="cb7-33" data-line-number="33"> <span class="dt">x =</span> <span class="st">"Date of Run"</span>, <span class="dt">y =</span> <span class="st">"Time (H:M:S)"</span>) <span class="op">+</span></a>
<a class="sourceLine" id="cb7-34" data-line-number="34"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/hrbrthemes/topics/theme_ipsum">theme_ipsum</a></span>(<span class="dt">grid =</span> <span class="st">"X"</span>) <span class="op">+</span><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/theme">theme</a></span>(<span class="dt">axis.text.x =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/element">element_text</a></span>(<span class="dt">hjust =</span> <span class="dv">0</span>))</a>
<a class="sourceLine" id="cb7-35" data-line-number="35"> }</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(lubridate)
tmp &lt;-<span class="st"> </span>oot100 <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(time_hms <span class="op">&lt;</span><span class="st"> </span>hms<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">hours =</span> <span class="dv">4</span>, <span class="dt">minutes =</span> <span class="dv">30</span>),
date <span class="op">&gt;=</span><span class="st"> </span><span class="kw"><a href="http://lubridate.tidyverse.org/reference/ymd.html">ymd</a></span>(<span class="st">"2018-01-01"</span>)) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(player_name, time_hms, date)
<span class="kw"><a href="http://dplyr.tidyverse.org/reference/bind.html">bind_rows</a></span>(
tmp,
tmp <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(player_name) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/summarise.html">summarize</a></span>(<span class="dt">time_hms =</span> <span class="kw">min</span>(time_hms), <span class="dt">date =</span> <span class="kw"><a href="http://lubridate.tidyverse.org/reference/today.html">today</a></span>()) <span class="op">%&gt;%</span>
<span class="st"> </span>ungroup
) <span class="op">%&gt;%</span>
<span class="st"> </span>{
<span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/ggplot">ggplot</a></span>(., <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(date, time_hms, <span class="dt">color =</span> player_name, <span class="dt">fill =</span> player_name)) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_point">geom_point</a></span>(<span class="dt">size =</span> <span class="dv">1</span>, <span class="dt">alpha =</span> .<span class="dv">75</span>) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/geom_path">geom_step</a></span>() <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggrepel/topics/geom_text_repel">geom_label_repel</a></span>(<span class="dt">data =</span> .
<span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(player_name) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/summarise.html">summarize</a></span>(<span class="dt">y =</span> <span class="kw">min</span>(time_hms), <span class="dt">x =</span> <span class="kw">max</span>(date)),
<span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/aes">aes</a></span>(<span class="dt">label =</span> <span class="kw">paste0</span>(player_name, <span class="st">": "</span>, y), <span class="dt">x =</span> x, <span class="dt">y =</span> y),
<span class="dt">color =</span> <span class="st">"black"</span>, <span class="dt">alpha =</span> .<span class="dv">75</span>, <span class="dt">show.legend =</span> F,
<span class="dt">hjust =</span> <span class="dv">1</span>, <span class="dt">direction =</span> <span class="st">"y"</span>, <span class="dt">nudge_x =</span> <span class="dv">60</span><span class="op">^</span><span class="dv">2</span>) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_x_date</a></span>(<span class="dt">date_breaks =</span> <span class="st">"1 month"</span>, <span class="dt">date_labels =</span> <span class="st">"%b '%y"</span>,
<span class="dt">limits =</span> <span class="kw">c</span>(<span class="kw">as.Date</span>(<span class="ot">NA</span>), <span class="kw"><a href="http://lubridate.tidyverse.org/reference/today.html">today</a></span>() <span class="op">+</span><span class="st"> </span><span class="kw"><a href="http://lubridate.tidyverse.org/reference/period.html">days</a></span>(<span class="dv">45</span>))) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_date">scale_y_time</a></span>(<span class="dt">breaks =</span> <span class="kw">seq</span>(<span class="dv">0</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">12</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>),
<span class="dt">minor_breaks =</span> <span class="kw">seq</span>(<span class="dv">0</span>, <span class="dv">20</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span><span class="op">^</span><span class="dv">2</span>, <span class="dv">1</span><span class="op">/</span><span class="dv">24</span> <span class="op">*</span><span class="st"> </span><span class="dv">60</span>)) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_color_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>, <span class="dt">guide =</span> F) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/scale_brewer">scale_fill_brewer</a></span>(<span class="dt">palette =</span> <span class="st">"Dark2"</span>, <span class="dt">guide =</span> F) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/labs">labs</a></span>(<span class="dt">title =</span> <span class="st">"Ocarina of Time: 100% Speedruns in 2018"</span>,
<span class="dt">subtitle =</span> <span class="st">"All data from speedrun.com"</span>,
<span class="dt">x =</span> <span class="st">"Date of Run"</span>, <span class="dt">y =</span> <span class="st">"Time (H:M:S)"</span>) <span class="op">+</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/hrbrthemes/topics/theme_ipsum">theme_ipsum</a></span>(<span class="dt">grid =</span> <span class="st">"X"</span>) <span class="op">+</span><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/theme">theme</a></span>(<span class="dt">axis.text.x =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/ggplot2/topics/element">element_text</a></span>(<span class="dt">hjust =</span> <span class="dv">0</span>))
}</code></pre></div>
<p><img src="ocarina-of-time-100-_files/figure-html/oot_100_recents-1.png" width="1152"></p>
</div>
</div>


BIN
View File


BIN
View File


+ 51
- 51
docs/index.html View File

@@ -93,22 +93,22 @@
<h2 class="hasAnchor">
<a href="#installation" class="anchor"></a>Installation</h2>
<p>You can install the released version of speedrunr from GitHub with:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb1-1" data-line-number="1">remotes<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/remotes/topics/install_github">install_github</a></span>(<span class="st">"jemus42/speedrunr"</span>)</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">remotes<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/remotes/topics/install_github">install_github</a></span>(<span class="st">"jemus42/speedrunr"</span>)</code></pre></div>
</div>
<div id="example" class="section level2">
<h2 class="hasAnchor">
<a href="#example" class="anchor"></a>Example</h2>
<p>Let’s say you want to plot the times of all <em>Ocarina of TIme 100%</em> runs.<br>
Let’s get started:</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw">library</span>(dplyr)</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"><span class="kw">library</span>(knitr)</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(dplyr)
<span class="kw">library</span>(knitr)</code></pre></div>
<div id="identifiyng-the-game-youre-looking-for" class="section level3">
<h3 class="hasAnchor">
<a href="#identifiyng-the-game-youre-looking-for" class="anchor"></a>Identifiyng the game you’re looking for</h3>
<p>You can either search for “Ocarina of Time”, or supply <code>'oot'</code>, the game’s abbreviation on speedrun.com.</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb3-1" data-line-number="1">games &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_games.html">get_games</a></span>(<span class="dt">name =</span> <span class="st">"Ocarina of Time"</span>)</a>
<a class="sourceLine" id="cb3-2" data-line-number="2"></a>
<a class="sourceLine" id="cb3-3" data-line-number="3"><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>(games)</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">games &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_games.html">get_games</a></span>(<span class="dt">name =</span> <span class="st">"Ocarina of Time"</span>)
<span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>(games)</code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">id</th>
@@ -206,11 +206,11 @@ Let’s get started:</p>
<div id="get-the-games-categories" class="section level3">
<h3 class="hasAnchor">
<a href="#get-the-games-categories" class="anchor"></a>Get the game’s categories</h3>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb4-1" data-line-number="1">categories &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_categories.html">get_categories</a></span>(<span class="dt">id =</span> <span class="st">"j1l9qz1g"</span>)</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"></a>
<a class="sourceLine" id="cb4-3" data-line-number="3">categories <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb4-4" data-line-number="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(<span class="op">-</span>rules) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb4-5" data-line-number="5"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">categories &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_categories.html">get_categories</a></span>(<span class="dt">id =</span> <span class="st">"j1l9qz1g"</span>)
categories <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(<span class="op">-</span>rules) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">id</th>
@@ -312,16 +312,16 @@ Let’s get started:</p>
<h3 class="hasAnchor">
<a href="#get-the-runs-in-that-category" class="anchor"></a>Get the runs in that category</h3>
<p>Now we can fetch the runs. By default, 100 runs are returned, ordered by submit date in descending order, so newest runs first. This also means you will only be able to fully assess the WR progression if you make sure to get <em>all</em> the runs.</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb5-1" data-line-number="1">runs &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_runs.html">get_runs</a></span>(<span class="dt">game =</span> <span class="st">"j1l9qz1g"</span>, <span class="dt">category =</span> <span class="st">"q255jw2o"</span>)</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">runs &lt;-<span class="st"> </span><span class="kw"><a href="reference/get_runs.html">get_runs</a></span>(<span class="dt">game =</span> <span class="st">"j1l9qz1g"</span>, <span class="dt">category =</span> <span class="st">"q255jw2o"</span>)</code></pre></div>
<p>And now we can basically re-create the leaderboard, but including obsoleted runs:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb6-1" data-line-number="1"><span class="kw">library</span>(hms)</a>
<a class="sourceLine" id="cb6-2" data-line-number="2"></a>
<a class="sourceLine" id="cb6-3" data-line-number="3">runs <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-4" data-line-number="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span>(time_primary) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-5" data-line-number="5"><span class="st"> </span><span class="kw">head</span>(<span class="dv">20</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-6" data-line-number="6"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(submitted, time_primary, player_url) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-7" data-line-number="7"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/mutate.html">mutate</a></span>(<span class="dt">time_primary =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">seconds =</span> time_primary)) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb6-8" data-line-number="8"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(hms)
runs <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/arrange.html">arrange</a></span>(time_primary) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw">head</span>(<span class="dv">20</span>) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(submitted, time_primary, player_url) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/mutate.html">mutate</a></span>(<span class="dt">time_primary =</span> <span class="kw"><a href="http://www.rdocumentation.org/packages/hms/topics/hms">hms</a></span>(<span class="dt">seconds =</span> time_primary)) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">submitted</th>
@@ -340,30 +340,40 @@ Let’s get started:</p>
<td align="left"><a href="https://www.speedrun.com/user/zfg" class="uri">https://www.speedrun.com/user/zfg</a></td>
</tr>
<tr class="odd">
<td align="left">2018-09-17 12:49:58</td>
<td align="left">04:00:47</td>
<td align="left"><a href="https://www.speedrun.com/user/Marco" class="uri">https://www.speedrun.com/user/Marco</a></td>
</tr>
<tr class="even">
<td align="left">2018-07-28 05:47:32</td>
<td align="left">04:01:05</td>
<td align="left"><a href="https://www.speedrun.com/user/zfg" class="uri">https://www.speedrun.com/user/zfg</a></td>
</tr>
<tr class="even">
<tr class="odd">
<td align="left">2018-09-01 04:40:41</td>
<td align="left">04:01:39</td>
<td align="left"><a href="https://www.speedrun.com/user/Marco" class="uri">https://www.speedrun.com/user/Marco</a></td>
</tr>
<tr class="odd">
<tr class="even">
<td align="left">2018-07-22 03:15:39</td>
<td align="left">04:03:24</td>
<td align="left"><a href="https://www.speedrun.com/user/zfg" class="uri">https://www.speedrun.com/user/zfg</a></td>
</tr>
<tr class="even">
<tr class="odd">
<td align="left">2018-08-04 04:03:15</td>
<td align="left">04:03:40</td>
<td align="left"><a href="https://www.speedrun.com/user/Marco" class="uri">https://www.speedrun.com/user/Marco</a></td>
</tr>
<tr class="odd">
<tr class="even">
<td align="left">2018-06-21 02:28:51</td>
<td align="left">04:05:28</td>
<td align="left"><a href="https://www.speedrun.com/user/zfg" class="uri">https://www.speedrun.com/user/zfg</a></td>
</tr>
<tr class="odd">
<td align="left">2018-09-09 23:02:52</td>
<td align="left">04:07:04</td>
<td align="left"><a href="https://www.speedrun.com/user/MasterMonk1991" class="uri">https://www.speedrun.com/user/MasterMonk1991</a></td>
</tr>
<tr class="even">
<td align="left">2018-07-25 04:07:52</td>
<td align="left">04:07:23</td>
@@ -415,20 +425,10 @@ Let’s get started:</p>
<td align="left"><a href="https://www.speedrun.com/user/Marco" class="uri">https://www.speedrun.com/user/Marco</a></td>
</tr>
<tr class="even">
<td align="left">2017-12-28 02:05:48</td>
<td align="left">04:10:43</td>
<td align="left"><a href="https://www.speedrun.com/user/zfg" class="uri">https://www.speedrun.com/user/zfg</a></td>
</tr>
<tr class="odd">
<td align="left">2018-07-03 02:09:52</td>
<td align="left">04:11:00</td>
<td align="left"><a href="https://www.speedrun.com/user/Marco" class="uri">https://www.speedrun.com/user/Marco</a></td>
</tr>
<tr class="even">
<td align="left">2017-12-14 04:12:51</td>
<td align="left">04:11:08</td>
<td align="left"><a href="https://www.speedrun.com/user/zfg" class="uri">https://www.speedrun.com/user/zfg</a></td>
</tr>
</tbody>
</table>
</div>
@@ -436,9 +436,9 @@ Let’s get started:</p>
<h3 class="hasAnchor">
<a href="#more-data" class="anchor"></a>More data</h3>
<p>Wanna resolve those platforms? Just join with this table:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb7-1" data-line-number="1"><span class="kw"><a href="reference/get_platforms.html">get_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-2" data-line-number="2"><span class="st"> </span><span class="kw">head</span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb7-3" data-line-number="3"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw"><a href="reference/get_platforms.html">get_platforms</a></span>() <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw">head</span>() <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">id</th>
@@ -479,8 +479,8 @@ Let’s get started:</p>
</tbody>
</table>
<p>Same can be done with regions:</p>
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb8-1" data-line-number="1"><span class="kw"><a href="reference/get_regions.html">get_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb8-2" data-line-number="2"><span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw"><a href="reference/get_regions.html">get_regions</a></span>() <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="left">id</th>
@@ -521,12 +521,12 @@ Let’s get started:</p>
<code><a href="reference/add_miscdata.html">add_players()</a></code>, which only makes on API call per unique player.</li>
</ul>
<p>All of them work in the following way:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><a class="sourceLine" id="cb9-1" data-line-number="1">runs <span class="op">%&gt;%</span><span class="st"> </span></a>
<a class="sourceLine" id="cb9-2" data-line-number="2"><span class="st"> </span><span class="kw"><a href="reference/add_miscdata.html">add_regions</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-3" data-line-number="3"><span class="st"> </span><span class="kw"><a href="reference/add_miscdata.html">add_platforms</a></span>() <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-4" data-line-number="4"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(time_primary, system_region, system_platform) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-5" data-line-number="5"><span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/sample.html">sample_n</a></span>(<span class="dv">5</span>) <span class="op">%&gt;%</span></a>
<a class="sourceLine" id="cb9-6" data-line-number="6"><span class="st"> </span>knitr<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</a></code></pre></div>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">runs <span class="op">%&gt;%</span><span class="st"> </span>
<span class="st"> </span><span class="kw"><a href="reference/add_miscdata.html">add_regions</a></span>() <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="reference/add_miscdata.html">add_platforms</a></span>() <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/select.html">select</a></span>(time_primary, system_region, system_platform) <span class="op">%&gt;%</span>
<span class="st"> </span><span class="kw"><a href="http://dplyr.tidyverse.org/reference/sample.html">sample_n</a></span>(<span class="dv">5</span>) <span class="op">%&gt;%</span>
<span class="st"> </span>knitr<span class="op">::</span><span class="kw"><a href="http://www.rdocumentation.org/packages/knitr/topics/kable">kable</a></span>()</code></pre></div>
<table class="table">
<thead><tr class="header">
<th align="right">time_primary</th>
@@ -535,29 +535,29 @@ Let’s get started:</p>
</tr></thead>
<tbody>
<tr class="odd">
<td align="right">15399</td>
<td align="right">15251</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
</tr>
<tr class="even">
<td align="right">16144</td>
<td align="right">20589</td>
<td align="left">JPN / NTSC</td>
<td align="left">Nintendo 64</td>
</tr>
<tr class="odd">
<td align="right">18022</td>
<td align="right">15586</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
</tr>
<tr class="even">
<td align="right">15471</td>
<td align="right">15365</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
</tr>
<tr class="odd">
<td align="right">15756</td>
<td align="right">18752</td>
<td align="left">JPN / NTSC</td>
<td align="left">Wii Virtual Console</td>
<td align="left">Nintendo 64</td>
</tr>
</tbody>
</table>


+ 1
- 1
docs/pkgdown.yml View File

@@ -1,4 +1,4 @@
pandoc: 2.2.3.2
pandoc: 1.19.2.1
pkgdown: 1.1.0
pkgdown_sha: ~
articles:


Loading…
Cancel
Save