new post
3
.gitignore
vendored
|
@ -77,3 +77,6 @@ docs/site/
|
||||||
# committed for packages, but should be committed for applications that require a static
|
# committed for packages, but should be committed for applications that require a static
|
||||||
# environment.
|
# environment.
|
||||||
Manifest.toml
|
Manifest.toml
|
||||||
|
|
||||||
|
|
||||||
|
/_*.local
|
||||||
|
|
|
@ -190,7 +190,7 @@ window.Quarto = {
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
||||||
|
|
||||||
<h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-listing-category category-default"><div class="category" data-category="">All <span class="quarto-category-count">(11)</span></div><div class="category" data-category="Distill">Distill <span class="quarto-category-count">(1)</span></div><div class="category" data-category="R">R <span class="quarto-category-count">(1)</span></div><div class="category" data-category="TidyTuesday">TidyTuesday <span class="quarto-category-count">(1)</span></div><div class="category" data-category="dataViz">dataViz <span class="quarto-category-count">(1)</span></div><div class="category" data-category="tidytuesday">tidytuesday <span class="quarto-category-count">(1)</span></div></div></div>
|
<h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-listing-category category-default"><div class="category" data-category="">All <span class="quarto-category-count">(12)</span></div><div class="category" data-category="Distill">Distill <span class="quarto-category-count">(1)</span></div><div class="category" data-category="Julia">Julia <span class="quarto-category-count">(1)</span></div><div class="category" data-category="R">R <span class="quarto-category-count">(1)</span></div><div class="category" data-category="TidyTuesday">TidyTuesday <span class="quarto-category-count">(1)</span></div><div class="category" data-category="dataViz">dataViz <span class="quarto-category-count">(2)</span></div><div class="category" data-category="tidytuesday">tidytuesday <span class="quarto-category-count">(1)</span></div></div></div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block column-page-left" id="quarto-document-content">
|
<main class="content quarto-banner-title-block column-page-left" id="quarto-document-content">
|
||||||
|
|
||||||
|
@ -204,7 +204,43 @@ window.Quarto = {
|
||||||
|
|
||||||
<div class="quarto-listing quarto-listing-container-default" id="listing-listing">
|
<div class="quarto-listing quarto-listing-container-default" id="listing-listing">
|
||||||
<div class="list quarto-listing-default">
|
<div class="list quarto-listing-default">
|
||||||
<div class="quarto-post image-right" data-index="0" data-categories="tidytuesday,R,dataViz" data-listing-date-sort="1717819200000" data-listing-file-modified-sort="1717849238082" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="4" data-listing-word-count-sort="605">
|
<div class="quarto-post image-right" data-index="0" data-categories="Julia,dataViz" data-listing-date-sort="1724731200000" data-listing-file-modified-sort="1724769480177" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="10" data-listing-word-count-sort="1978">
|
||||||
|
<div class="thumbnail">
|
||||||
|
<p><a href="./posts/2024-08-09-learning-Julia/index.html" class="no-external"></a></p><a href="./posts/2024-08-09-learning-Julia/index.html" class="no-external">
|
||||||
|
<p class="card-img-top"><img src="posts\2024-08-09-learning-Julia\index_files\figure-html\cell-7-output-1.svg" class="thumbnail-image card-img"/></p>
|
||||||
|
</a><p><a href="./posts/2024-08-09-learning-Julia/index.html" class="no-external"></a></p>
|
||||||
|
</div>
|
||||||
|
<div class="body">
|
||||||
|
<h3 class="no-anchor listing-title">
|
||||||
|
<a href="./posts/2024-08-09-learning-Julia/index.html" class="no-external">Learning Julia by WebScraping Amtrak Data</a>
|
||||||
|
</h3>
|
||||||
|
<div class="listing-subtitle">
|
||||||
|
<a href="./posts/2024-08-09-learning-Julia/index.html" class="no-external"></a>
|
||||||
|
</div>
|
||||||
|
<div class="listing-categories">
|
||||||
|
<div class="listing-category" onclick="window.quartoListingCategory('Julia'); return false;">
|
||||||
|
Julia
|
||||||
|
</div>
|
||||||
|
<div class="listing-category" onclick="window.quartoListingCategory('dataViz'); return false;">
|
||||||
|
dataViz
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="listing-description">
|
||||||
|
<a href="./posts/2024-08-09-learning-Julia/index.html" class="no-external">Recently two things happened quite close together that started me on the journey to this post.</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="metadata">
|
||||||
|
<a href="./posts/2024-08-09-learning-Julia/index.html" class="no-external">
|
||||||
|
<div class="listing-date">
|
||||||
|
Aug 27, 2024
|
||||||
|
</div>
|
||||||
|
<div class="listing-author">
|
||||||
|
Kyle Belanger
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="quarto-post image-right" data-index="1" data-categories="tidytuesday,R,dataViz" data-listing-date-sort="1717819200000" data-listing-file-modified-sort="1724773010389" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="4" data-listing-word-count-sort="687">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2024-05-15-US-NHL-Birthrate/index.html" class="no-external"></a></p><a href="./posts/2024-05-15-US-NHL-Birthrate/index.html" class="no-external">
|
<p><a href="./posts/2024-05-15-US-NHL-Birthrate/index.html" class="no-external"></a></p><a href="./posts/2024-05-15-US-NHL-Birthrate/index.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2024-05-15-US-NHL-Birthrate\index_files\figure-html\Graph_It-1.png" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2024-05-15-US-NHL-Birthrate\index_files\figure-html\Graph_It-1.png" class="thumbnail-image card-img"/></p>
|
||||||
|
@ -243,7 +279,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="1" data-listing-date-sort="1697083200000" data-listing-file-modified-sort="1715274259534" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="458">
|
<div class="quarto-post image-right" data-index="2" data-listing-date-sort="1697083200000" data-listing-file-modified-sort="1715274259534" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="458">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2023-10-12_DHSC_Capstone/index.html" class="no-external"></a></p><a href="./posts/2023-10-12_DHSC_Capstone/index.html" class="no-external">
|
<p><a href="./posts/2023-10-12_DHSC_Capstone/index.html" class="no-external"></a></p><a href="./posts/2023-10-12_DHSC_Capstone/index.html" class="no-external">
|
||||||
<div class="listing-item-img-placeholder card-img-top" > </div>
|
<div class="listing-item-img-placeholder card-img-top" > </div>
|
||||||
|
@ -271,7 +307,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="2" data-categories="TidyTuesday" data-listing-date-sort="1614315600000" data-listing-file-modified-sort="1715274259533" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="12" data-listing-word-count-sort="2346">
|
<div class="quarto-post image-right" data-index="3" data-categories="TidyTuesday" data-listing-date-sort="1614315600000" data-listing-file-modified-sort="1715274259533" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="12" data-listing-word-count-sort="2346">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2021-02-26_tidytuesday-hbcu-enrollment/tidytuesday-2021-week-6-hbcu-enrolment.html" class="no-external"></a></p><a href="./posts/2021-02-26_tidytuesday-hbcu-enrollment/tidytuesday-2021-week-6-hbcu-enrolment.html" class="no-external">
|
<p><a href="./posts/2021-02-26_tidytuesday-hbcu-enrollment/tidytuesday-2021-week-6-hbcu-enrolment.html" class="no-external"></a></p><a href="./posts/2021-02-26_tidytuesday-hbcu-enrollment/tidytuesday-2021-week-6-hbcu-enrolment.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2021-02-26_tidytuesday-hbcu-enrollment\tidytuesday-2021-week-6-hbcu-enrolment_files\figure-html\unnamed-chunk-10-1.png" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2021-02-26_tidytuesday-hbcu-enrollment\tidytuesday-2021-week-6-hbcu-enrolment_files\figure-html\unnamed-chunk-10-1.png" class="thumbnail-image card-img"/></p>
|
||||||
|
@ -304,7 +340,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="3" data-categories="Distill" data-listing-date-sort="1610427600000" data-listing-file-modified-sort="1715274259531" data-listing-date-modified-sort="1697083200000" data-listing-reading-time-sort="3" data-listing-word-count-sort="575">
|
<div class="quarto-post image-right" data-index="4" data-categories="Distill" data-listing-date-sort="1610427600000" data-listing-file-modified-sort="1715274259531" data-listing-date-modified-sort="1697083200000" data-listing-reading-time-sort="3" data-listing-word-count-sort="575">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2021-01-12_blogdown-to-distill/creating-a-distill-blog.html" class="no-external"></a></p><a href="./posts/2021-01-12_blogdown-to-distill/creating-a-distill-blog.html" class="no-external">
|
<p><a href="./posts/2021-01-12_blogdown-to-distill/creating-a-distill-blog.html" class="no-external"></a></p><a href="./posts/2021-01-12_blogdown-to-distill/creating-a-distill-blog.html" class="no-external">
|
||||||
<div class="listing-item-img-placeholder card-img-top" > </div>
|
<div class="listing-item-img-placeholder card-img-top" > </div>
|
||||||
|
@ -337,7 +373,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="4" data-listing-date-sort="1595649600000" data-listing-file-modified-sort="1715274259530" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="4" data-listing-word-count-sort="722">
|
<div class="quarto-post image-right" data-index="5" data-listing-date-sort="1595649600000" data-listing-file-modified-sort="1715274259530" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="4" data-listing-word-count-sort="722">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2020-07-25_diabetes-data-collection-and-cleaning/diabetes-in-rural-north-carolina-data-collection-and-cleaning.html" class="no-external"></a></p><a href="./posts/2020-07-25_diabetes-data-collection-and-cleaning/diabetes-in-rural-north-carolina-data-collection-and-cleaning.html" class="no-external">
|
<p><a href="./posts/2020-07-25_diabetes-data-collection-and-cleaning/diabetes-in-rural-north-carolina-data-collection-and-cleaning.html" class="no-external"></a></p><a href="./posts/2020-07-25_diabetes-data-collection-and-cleaning/diabetes-in-rural-north-carolina-data-collection-and-cleaning.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2020-07-25_diabetes-data-collection-and-cleaning\data-cleaning.png" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2020-07-25_diabetes-data-collection-and-cleaning\data-cleaning.png" class="thumbnail-image card-img"/></p>
|
||||||
|
@ -365,7 +401,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="5" data-listing-date-sort="1593057600000" data-listing-file-modified-sort="1715274259526" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="8" data-listing-word-count-sort="1512">
|
<div class="quarto-post image-right" data-index="6" data-listing-date-sort="1593057600000" data-listing-file-modified-sort="1715274259526" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="8" data-listing-word-count-sort="1512">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2020-06-25_diabetes-prevalence-in-nc/diabetes-in-rural-north-carolina-exploring-prevalence-trends.html" class="no-external"></a></p><a href="./posts/2020-06-25_diabetes-prevalence-in-nc/diabetes-in-rural-north-carolina-exploring-prevalence-trends.html" class="no-external">
|
<p><a href="./posts/2020-06-25_diabetes-prevalence-in-nc/diabetes-in-rural-north-carolina-exploring-prevalence-trends.html" class="no-external"></a></p><a href="./posts/2020-06-25_diabetes-prevalence-in-nc/diabetes-in-rural-north-carolina-exploring-prevalence-trends.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2020-06-25_diabetes-prevalence-in-nc\diabetes-in-rural-north-carolina-exploring-prevalence-trends_files\figure-html\o-g1-1.png" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2020-06-25_diabetes-prevalence-in-nc\diabetes-in-rural-north-carolina-exploring-prevalence-trends_files\figure-html\o-g1-1.png" class="thumbnail-image card-img"/></p>
|
||||||
|
@ -393,7 +429,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="6" data-listing-date-sort="1592798400000" data-listing-file-modified-sort="1715274259523" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="534">
|
<div class="quarto-post image-right" data-index="7" data-listing-date-sort="1592798400000" data-listing-file-modified-sort="1715274259523" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="534">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2020-06-22_excel-data-multiple-headers/importing-excel-data-with-multiple-header-rows.html" class="no-external"></a></p><a href="./posts/2020-06-22_excel-data-multiple-headers/importing-excel-data-with-multiple-header-rows.html" class="no-external">
|
<p><a href="./posts/2020-06-22_excel-data-multiple-headers/importing-excel-data-with-multiple-header-rows.html" class="no-external"></a></p><a href="./posts/2020-06-22_excel-data-multiple-headers/importing-excel-data-with-multiple-header-rows.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2020-06-22_excel-data-multiple-headers\example_data_img1.png" alt="image of example data" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2020-06-22_excel-data-multiple-headers\example_data_img1.png" alt="image of example data" class="thumbnail-image card-img"/></p>
|
||||||
|
@ -421,7 +457,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="7" data-listing-date-sort="1581570000000" data-listing-file-modified-sort="1715274259519" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="11" data-listing-word-count-sort="2089">
|
<div class="quarto-post image-right" data-index="8" data-listing-date-sort="1581570000000" data-listing-file-modified-sort="1715274259519" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="11" data-listing-word-count-sort="2089">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2020-02-13_basic-who-TB-data/basic-exploration-of-who-tuberculosis-data.html" class="no-external"></a></p><a href="./posts/2020-02-13_basic-who-TB-data/basic-exploration-of-who-tuberculosis-data.html" class="no-external">
|
<p><a href="./posts/2020-02-13_basic-who-TB-data/basic-exploration-of-who-tuberculosis-data.html" class="no-external"></a></p><a href="./posts/2020-02-13_basic-who-TB-data/basic-exploration-of-who-tuberculosis-data.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2020-02-13_basic-who-TB-data\basic-exploration-of-who-tuberculosis-data_files\figure-html\unnamed-chunk-5-1.png" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2020-02-13_basic-who-TB-data\basic-exploration-of-who-tuberculosis-data_files\figure-html\unnamed-chunk-5-1.png" class="thumbnail-image card-img"/></p>
|
||||||
|
@ -449,7 +485,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="8" data-listing-date-sort="1581310800000" data-listing-file-modified-sort="1715274259501" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="8" data-listing-word-count-sort="1470">
|
<div class="quarto-post image-right" data-index="9" data-listing-date-sort="1581310800000" data-listing-file-modified-sort="1715274259501" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="8" data-listing-word-count-sort="1470">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2020-02-10_line-graphs-and-interactivity/line-graphs-and-interactivity.html" class="no-external"></a></p><a href="./posts/2020-02-10_line-graphs-and-interactivity/line-graphs-and-interactivity.html" class="no-external">
|
<p><a href="./posts/2020-02-10_line-graphs-and-interactivity/line-graphs-and-interactivity.html" class="no-external"></a></p><a href="./posts/2020-02-10_line-graphs-and-interactivity/line-graphs-and-interactivity.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2020-02-10_line-graphs-and-interactivity\flu_surveillance.png" alt="Example Line Graph" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2020-02-10_line-graphs-and-interactivity\flu_surveillance.png" alt="Example Line Graph" class="thumbnail-image card-img"/></p>
|
||||||
|
@ -477,7 +513,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="9" data-listing-date-sort="1580274000000" data-listing-file-modified-sort="1715274259493" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="574">
|
<div class="quarto-post image-right" data-index="10" data-listing-date-sort="1580274000000" data-listing-file-modified-sort="1715274259493" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="3" data-listing-word-count-sort="574">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2020-01-29_facets-and-humility/facets-and-a-lesson-in-humility.html" class="no-external"></a></p><a href="./posts/2020-01-29_facets-and-humility/facets-and-a-lesson-in-humility.html" class="no-external">
|
<p><a href="./posts/2020-01-29_facets-and-humility/facets-and-a-lesson-in-humility.html" class="no-external"></a></p><a href="./posts/2020-01-29_facets-and-humility/facets-and-a-lesson-in-humility.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2020-01-29_facets-and-humility\WHO_LIFE.png" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2020-01-29_facets-and-humility\WHO_LIFE.png" class="thumbnail-image card-img"/></p>
|
||||||
|
@ -505,7 +541,7 @@ Kyle Belanger
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="quarto-post image-right" data-index="10" data-listing-date-sort="1579842000000" data-listing-file-modified-sort="1715274259489" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="356">
|
<div class="quarto-post image-right" data-index="11" data-listing-date-sort="1579842000000" data-listing-file-modified-sort="1724767176717" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-word-count-sort="356">
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
<p><a href="./posts/2020-01-04_my-start-to-r/my-start-to-r.html" class="no-external"></a></p><a href="./posts/2020-01-04_my-start-to-r/my-start-to-r.html" class="no-external">
|
<p><a href="./posts/2020-01-04_my-start-to-r/my-start-to-r.html" class="no-external"></a></p><a href="./posts/2020-01-04_my-start-to-r/my-start-to-r.html" class="no-external">
|
||||||
<p class="card-img-top"><img src="posts\2020-01-04_my-start-to-r\my-start-to-r_files\figure-html\unnamed-chunk-5-1.png" class="thumbnail-image card-img"/></p>
|
<p class="card-img-top"><img src="posts\2020-01-04_my-start-to-r\my-start-to-r_files\figure-html\unnamed-chunk-5-1.png" class="thumbnail-image card-img"/></p>
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
|
|
||||||
<title>Kyle Belanger - About</title>
|
<title>About – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -82,7 +82,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -113,7 +113,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
|
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<div class="quarto-about-broadside column-page content">
|
<div class="quarto-about-broadside column-page">
|
||||||
<div class="about-main">
|
<div class="about-main">
|
||||||
<div class="about-entity" style="background-image: url('kyle.jpg')"></div>
|
<div class="about-entity" style="background-image: url('kyle.jpg')"></div>
|
||||||
<div class="about-contents"><header id="title-block-header" class="quarto-title-block default">
|
<div class="about-contents"><header id="title-block-header" class="quarto-title-block default">
|
||||||
|
@ -187,18 +187,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -230,7 +219,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -238,7 +249,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
"listing": "/blog.html",
|
"listing": "/blog.html",
|
||||||
"items": [
|
"items": [
|
||||||
|
"/posts/2024-08-09-learning-Julia/index.html",
|
||||||
"/posts/2024-05-15-US-NHL-Birthrate/index.html",
|
"/posts/2024-05-15-US-NHL-Birthrate/index.html",
|
||||||
"/posts/2023-10-12_DHSC_Capstone/index.html",
|
"/posts/2023-10-12_DHSC_Capstone/index.html",
|
||||||
"/posts/2021-02-26_tidytuesday-hbcu-enrollment/tidytuesday-2021-week-6-hbcu-enrolment.html",
|
"/posts/2021-02-26_tidytuesday-hbcu-enrollment/tidytuesday-2021-week-6-hbcu-enrolment.html",
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2020-01-24">
|
<meta name="dcterms.date" content="2020-01-24">
|
||||||
|
|
||||||
<title>Kyle Belanger - My Start to R</title>
|
<title>My Start to R – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -35,7 +35,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -119,7 +119,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -191,7 +191,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -311,18 +311,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -354,7 +343,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -362,7 +373,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2020-01-29">
|
<meta name="dcterms.date" content="2020-01-29">
|
||||||
|
|
||||||
<title>Kyle Belanger - Facets and a Lesson in Humility</title>
|
<title>Facets and a Lesson in Humility – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -35,7 +35,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -119,7 +119,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -190,7 +190,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -325,18 +325,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -368,7 +357,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -376,7 +387,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2020-02-10">
|
<meta name="dcterms.date" content="2020-02-10">
|
||||||
|
|
||||||
<title>Kyle Belanger - Line Graphs and Interactivity</title>
|
<title>Line Graphs and Interactivity – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -35,7 +35,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -137,7 +137,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -209,7 +209,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -354,8 +354,8 @@ $ fiscal_year <fct> 2013, 2013, 2013, 2013, 2
|
||||||
<span id="cb8-19"><a href="#cb8-19" aria-hidden="true" tabindex="-1"></a></span>
|
<span id="cb8-19"><a href="#cb8-19" aria-hidden="true" tabindex="-1"></a></span>
|
||||||
<span id="cb8-20"><a href="#cb8-20" aria-hidden="true" tabindex="-1"></a>g2</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
|
<span id="cb8-20"><a href="#cb8-20" aria-hidden="true" tabindex="-1"></a>g2</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
|
||||||
<div class="cell-output-display">
|
<div class="cell-output-display">
|
||||||
<div class="plotly html-widget html-fill-item" id="htmlwidget-b1e3ee4d5879640cfdb4" style="width:100%;height:464px;"></div>
|
<div class="plotly html-widget html-fill-item" id="htmlwidget-f68a794f84f8fe260a7a" style="width:100%;height:464px;"></div>
|
||||||
<script type="application/json" data-for="htmlwidget-b1e3ee4d5879640cfdb4">{"x":{"visdat":{"53146fe27765":["function () ","plotlyVisDat"]},"cur_data":"53146fe27765","attrs":{"53146fe27765":{"x":{},"y":{},"mode":"lines","hoverinfo":"y","color":{},"colors":["#a6611a","#dfc27d","#80cdc1","#018571"],"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"}},"layout":{"margin":{"b":40,"l":60,"t":25,"r":10},"xaxis":{"domain":[0,1],"automargin":true,"title":"","type":"category","categoryorder":"array","categoryarray":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"]},"yaxis":{"domain":[0,1],"automargin":true,"title":"% Tests (+) for Influenza"},"title":"Flu Viral Surveillance: % Respiratory Specimens Positive for Influenza","legend":{"x":100,"y":0.5},"hovermode":"closest","showlegend":true},"source":"A","config":{"modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"data":[{"x":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],"y":[5,13,34,33,23,17,11,6,4,3,3,3],"mode":"lines","hoverinfo":["y","y","y","y","y","y","y","y","y","y","y","y"],"type":"scatter","name":"2013","marker":{"color":"rgba(166,97,26,1)","line":{"color":"rgba(166,97,26,1)"}},"textfont":{"color":"rgba(166,97,26,1)"},"error_y":{"color":"rgba(166,97,26,1)"},"error_x":{"color":"rgba(166,97,26,1)"},"line":{"color":"rgba(166,97,26,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],"y":[4,8,26,27,18,12,14,10,6,4,3,2],"mode":"lines","hoverinfo":["y","y","y","y","y","y","y","y","y","y","y","y"],"type":"scatter","name":"2014","marker":{"color":"rgba(223,194,125,1)","line":{"color":"rgba(223,194,125,1)"}},"textfont":{"color":"rgba(223,194,125,1)"},"error_y":{"color":"rgba(223,194,125,1)"},"error_x":{"color":"rgba(223,194,125,1)"},"line":{"color":"rgba(223,194,125,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],"y":[4,13,29,23,14,12,8,4,2,2,2,2],"mode":"lines","hoverinfo":["y","y","y","y","y","y","y","y","y","y","y","y"],"type":"scatter","name":"2015","marker":{"color":"rgba(128,205,193,1)","line":{"color":"rgba(128,205,193,1)"}},"textfont":{"color":"rgba(128,205,193,1)"},"error_y":{"color":"rgba(128,205,193,1)"},"error_x":{"color":"rgba(128,205,193,1)"},"line":{"color":"rgba(128,205,193,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],"y":[1,1,2,6,17,20,12,5,2,1,1,2],"mode":"lines","hoverinfo":["y","y","y","y","y","y","y","y","y","y","y","y"],"type":"scatter","name":"2016","marker":{"color":"rgba(1,133,113,1)","line":{"color":"rgba(1,133,113,1)"}},"textfont":{"color":"rgba(1,133,113,1)"},"error_y":{"color":"rgba(1,133,113,1)"},"error_x":{"color":"rgba(1,133,113,1)"},"line":{"color":"rgba(1,133,113,1)"},"xaxis":"x","yaxis":"y","frame":null}],"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script>
|
<script type="application/json" data-for="htmlwidget-f68a794f84f8fe260a7a">{"x":{"visdat":{"2d846dba4b06":["function () ","plotlyVisDat"]},"cur_data":"2d846dba4b06","attrs":{"2d846dba4b06":{"x":{},"y":{},"mode":"lines","hoverinfo":"y","color":{},"colors":["#a6611a","#dfc27d","#80cdc1","#018571"],"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"scatter"}},"layout":{"margin":{"b":40,"l":60,"t":25,"r":10},"xaxis":{"domain":[0,1],"automargin":true,"title":"","type":"category","categoryorder":"array","categoryarray":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"]},"yaxis":{"domain":[0,1],"automargin":true,"title":"% Tests (+) for Influenza"},"title":"Flu Viral Surveillance: % Respiratory Specimens Positive for Influenza","legend":{"x":100,"y":0.5},"hovermode":"closest","showlegend":true},"source":"A","config":{"modeBarButtonsToAdd":["hoverclosest","hovercompare"],"showSendToCloud":false},"data":[{"x":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],"y":[5,13,34,33,23,17,11,6,4,3,3,3],"mode":"lines","hoverinfo":["y","y","y","y","y","y","y","y","y","y","y","y"],"type":"scatter","name":"2013","marker":{"color":"rgba(166,97,26,1)","line":{"color":"rgba(166,97,26,1)"}},"textfont":{"color":"rgba(166,97,26,1)"},"error_y":{"color":"rgba(166,97,26,1)"},"error_x":{"color":"rgba(166,97,26,1)"},"line":{"color":"rgba(166,97,26,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],"y":[4,8,26,27,18,12,14,10,6,4,3,2],"mode":"lines","hoverinfo":["y","y","y","y","y","y","y","y","y","y","y","y"],"type":"scatter","name":"2014","marker":{"color":"rgba(223,194,125,1)","line":{"color":"rgba(223,194,125,1)"}},"textfont":{"color":"rgba(223,194,125,1)"},"error_y":{"color":"rgba(223,194,125,1)"},"error_x":{"color":"rgba(223,194,125,1)"},"line":{"color":"rgba(223,194,125,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],"y":[4,13,29,23,14,12,8,4,2,2,2,2],"mode":"lines","hoverinfo":["y","y","y","y","y","y","y","y","y","y","y","y"],"type":"scatter","name":"2015","marker":{"color":"rgba(128,205,193,1)","line":{"color":"rgba(128,205,193,1)"}},"textfont":{"color":"rgba(128,205,193,1)"},"error_y":{"color":"rgba(128,205,193,1)"},"error_x":{"color":"rgba(128,205,193,1)"},"line":{"color":"rgba(128,205,193,1)"},"xaxis":"x","yaxis":"y","frame":null},{"x":["Oct","Nov","Dec","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep"],"y":[1,1,2,6,17,20,12,5,2,1,1,2],"mode":"lines","hoverinfo":["y","y","y","y","y","y","y","y","y","y","y","y"],"type":"scatter","name":"2016","marker":{"color":"rgba(1,133,113,1)","line":{"color":"rgba(1,133,113,1)"}},"textfont":{"color":"rgba(1,133,113,1)"},"error_y":{"color":"rgba(1,133,113,1)"},"error_x":{"color":"rgba(1,133,113,1)"},"line":{"color":"rgba(1,133,113,1)"},"xaxis":"x","yaxis":"y","frame":null}],"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.20000000000000001,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -407,18 +407,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -450,7 +439,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -458,7 +469,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2020-02-13">
|
<meta name="dcterms.date" content="2020-02-13">
|
||||||
|
|
||||||
<title>Kyle Belanger - Basic Exploration of WHO Tuberculosis Data</title>
|
<title>Basic Exploration of WHO Tuberculosis Data – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -35,7 +35,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -119,7 +119,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -201,7 +201,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -543,18 +543,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -586,7 +575,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -594,7 +605,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2020-06-22">
|
<meta name="dcterms.date" content="2020-06-22">
|
||||||
|
|
||||||
<title>Kyle Belanger - Importing Excel Data with Multiple Header Rows</title>
|
<title>Importing Excel Data with Multiple Header Rows – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -35,7 +35,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -119,7 +119,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -200,7 +200,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -428,18 +428,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -471,7 +460,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -479,7 +490,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2020-06-25">
|
<meta name="dcterms.date" content="2020-06-25">
|
||||||
|
|
||||||
<title>Kyle Belanger - Diabetes in Rural North Carolina : Exploring Prevalence Trends</title>
|
<title>Diabetes in Rural North Carolina : Exploring Prevalence Trends – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -35,7 +35,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -139,7 +139,7 @@ div.csl-indent {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -223,7 +223,7 @@ div.csl-indent {
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block page-columns page-full" id="quarto-document-content">
|
<main class="content quarto-banner-title-block page-columns page-full" id="quarto-document-content">
|
||||||
|
@ -652,7 +652,7 @@ div.csl-indent {
|
||||||
</section>
|
</section>
|
||||||
<section id="by-county---geographical" class="level1 page-columns page-full">
|
<section id="by-county---geographical" class="level1 page-columns page-full">
|
||||||
<h1>By County - Geographical</h1>
|
<h1>By County - Geographical</h1>
|
||||||
<p>County level data first became available in 2004, three years of data is used to arrive at these estimates. For example, the 2006 estimates were computed using the data from 2005, 2006, and 2007 BRFS survey rounds. The county-level estimates were based on indirect model-dependent estimates using Bayesian multilevel modeling techniques<span class="citation" data-cites="Rao2003 Barker2013">(<a href="#ref-Rao2003" role="doc-biblioref">JNK, 2003</a> ; <a href="#ref-Barker2013" role="doc-biblioref">Barker et al., 2013</a>)</span>. This model-dependent approach employs a statistical model that “borrows strength” in making an estimate for one county from BRFSS data collected in other counties and states. Multilevel Binomial regression models with random effects of demographic variables (age 20-44, 45-64, >=65; race/ethnicity; sex) at the county-level were developed. Estimates were adjusted for age to the 2000 US standard population using age groups of 20-44, 45-64, and 65 or older<span class="citation" data-cites="Klein2001">(<a href="#ref-Klein2001" role="doc-biblioref">Klein & Schoenborn, 2001</a>)</span>.</p>
|
<p>County level data first became available in 2004, three years of data is used to arrive at these estimates. For example, the 2006 estimates were computed using the data from 2005, 2006, and 2007 BRFS survey rounds. The county-level estimates were based on indirect model-dependent estimates using Bayesian multilevel modeling techniques<span class="citation" data-cites="Rao2003 Barker2013">(<a href="#ref-Barker2013" role="doc-biblioref">Barker et al., 2013</a>; <a href="#ref-Rao2003" role="doc-biblioref">JNK, 2003</a>)</span>. This model-dependent approach employs a statistical model that “borrows strength” in making an estimate for one county from BRFSS data collected in other counties and states. Multilevel Binomial regression models with random effects of demographic variables (age 20-44, 45-64, >=65; race/ethnicity; sex) at the county-level were developed. Estimates were adjusted for age to the 2000 US standard population using age groups of 20-44, 45-64, and 65 or older<span class="citation" data-cites="Klein2001">(<a href="#ref-Klein2001" role="doc-biblioref">Klein & Schoenborn, 2001</a>)</span>.</p>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<details class="code-fold">
|
<details class="code-fold">
|
||||||
<summary>Code</summary>
|
<summary>Code</summary>
|
||||||
|
@ -928,7 +928,7 @@ Environment <span class="glyphicon glyphicon-plus-sign"></span>
|
||||||
<div class="cell-output cell-output-stdout">
|
<div class="cell-output cell-output-stdout">
|
||||||
<pre><code>─ Session info ───────────────────────────────────────────────────────────────
|
<pre><code>─ Session info ───────────────────────────────────────────────────────────────
|
||||||
setting value
|
setting value
|
||||||
version R version 4.3.3 (2024-02-29 ucrt)
|
version R version 4.4.1 (2024-06-14 ucrt)
|
||||||
os Windows 11 x64 (build 22621)
|
os Windows 11 x64 (build 22621)
|
||||||
system x86_64, mingw32
|
system x86_64, mingw32
|
||||||
ui RTerm
|
ui RTerm
|
||||||
|
@ -936,131 +936,130 @@ Environment <span class="glyphicon glyphicon-plus-sign"></span>
|
||||||
collate English_United States.utf8
|
collate English_United States.utf8
|
||||||
ctype English_United States.utf8
|
ctype English_United States.utf8
|
||||||
tz America/New_York
|
tz America/New_York
|
||||||
date 2024-06-08
|
date 2024-08-27
|
||||||
pandoc 3.2 @ C:/Users/belangew/AppData/Local/Pandoc/ (via rmarkdown)
|
pandoc 3.2 @ C:/Users/belangew/AppData/Local/Pandoc/ (via rmarkdown)
|
||||||
|
|
||||||
─ Packages ───────────────────────────────────────────────────────────────────
|
─ Packages ───────────────────────────────────────────────────────────────────
|
||||||
package * version date (UTC) lib source
|
package * version date (UTC) lib source
|
||||||
bit 4.0.5 2022-11-15 [1] CRAN (R 4.3.3)
|
bit 4.0.5 2022-11-15 [1] CRAN (R 4.4.1)
|
||||||
bit64 4.0.5 2020-08-30 [1] CRAN (R 4.3.3)
|
bit64 4.0.5 2020-08-30 [1] CRAN (R 4.4.1)
|
||||||
cachem 1.0.8 2023-05-01 [1] CRAN (R 4.3.3)
|
cachem 1.1.0 2024-05-16 [1] CRAN (R 4.4.1)
|
||||||
class 7.3-22 2023-05-03 [2] CRAN (R 4.3.3)
|
class 7.3-22 2023-05-03 [1] CRAN (R 4.4.1)
|
||||||
classInt 0.4-10 2023-09-05 [1] CRAN (R 4.3.3)
|
classInt 0.4-10 2023-09-05 [1] CRAN (R 4.4.1)
|
||||||
cli 3.6.2 2023-12-11 [1] CRAN (R 4.3.3)
|
cli 3.6.3 2024-06-21 [1] CRAN (R 4.4.1)
|
||||||
colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.3.3)
|
colorspace 2.1-1 2024-07-26 [1] CRAN (R 4.4.1)
|
||||||
confintr 1.0.2 2023-06-04 [1] CRAN (R 4.3.3)
|
confintr 1.0.2 2023-06-04 [1] CRAN (R 4.4.1)
|
||||||
crayon 1.5.2 2022-09-29 [1] CRAN (R 4.3.3)
|
crayon 1.5.3 2024-06-20 [1] CRAN (R 4.4.1)
|
||||||
crul 1.4.2 2024-04-09 [1] CRAN (R 4.3.3)
|
crul 1.5.0 2024-07-19 [1] CRAN (R 4.4.1)
|
||||||
curl 5.2.1 2024-03-01 [1] CRAN (R 4.3.3)
|
curl 5.2.1 2024-03-01 [1] CRAN (R 4.4.1)
|
||||||
DBI 1.2.3 2024-06-02 [1] CRAN (R 4.3.3)
|
DBI 1.2.3 2024-06-02 [1] CRAN (R 4.4.1)
|
||||||
devtools 2.4.5 2022-10-11 [1] CRAN (R 4.3.3)
|
devtools 2.4.5 2022-10-11 [1] CRAN (R 4.4.1)
|
||||||
digest 0.6.35 2024-03-11 [1] CRAN (R 4.3.3)
|
digest 0.6.36 2024-06-23 [1] CRAN (R 4.4.1)
|
||||||
dlookr 0.6.3 2024-02-07 [1] CRAN (R 4.3.3)
|
dlookr 0.6.3 2024-02-07 [1] CRAN (R 4.4.1)
|
||||||
dplyr * 1.1.4 2023-11-17 [1] CRAN (R 4.3.3)
|
dplyr * 1.1.4 2023-11-17 [1] CRAN (R 4.4.1)
|
||||||
e1071 1.7-14 2023-12-06 [1] CRAN (R 4.3.3)
|
e1071 1.7-14 2023-12-06 [1] CRAN (R 4.4.1)
|
||||||
ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.3.3)
|
ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.4.1)
|
||||||
evaluate 0.23 2023-11-01 [1] CRAN (R 4.3.3)
|
evaluate 0.24.0 2024-06-10 [1] CRAN (R 4.4.1)
|
||||||
extrafont 0.19 2023-01-18 [1] CRAN (R 4.3.1)
|
extrafont 0.19 2023-01-18 [1] CRAN (R 4.4.0)
|
||||||
extrafontdb 1.0 2012-06-11 [1] CRAN (R 4.3.1)
|
extrafontdb 1.0 2012-06-11 [1] CRAN (R 4.4.0)
|
||||||
fansi 1.0.6 2023-12-08 [1] CRAN (R 4.3.3)
|
fansi 1.0.6 2023-12-08 [1] CRAN (R 4.4.1)
|
||||||
farver 2.1.2 2024-05-13 [1] CRAN (R 4.3.3)
|
farver 2.1.2 2024-05-13 [1] CRAN (R 4.4.1)
|
||||||
fastmap 1.1.1 2023-02-24 [1] CRAN (R 4.3.3)
|
fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.4.1)
|
||||||
fontBitstreamVera 0.1.1 2017-02-01 [1] CRAN (R 4.3.1)
|
fontBitstreamVera 0.1.1 2017-02-01 [1] CRAN (R 4.4.0)
|
||||||
fontLiberation 0.1.0 2016-10-15 [1] CRAN (R 4.3.1)
|
fontLiberation 0.1.0 2016-10-15 [1] CRAN (R 4.4.0)
|
||||||
fontquiver 0.2.1 2017-02-01 [1] CRAN (R 4.3.3)
|
fontquiver 0.2.1 2017-02-01 [1] CRAN (R 4.4.1)
|
||||||
forcats 1.0.0 2023-01-29 [1] CRAN (R 4.3.3)
|
forcats 1.0.0 2023-01-29 [1] CRAN (R 4.4.1)
|
||||||
fs 1.6.3 2023-07-20 [1] CRAN (R 4.3.3)
|
fs 1.6.4 2024-04-25 [1] CRAN (R 4.4.1)
|
||||||
gdtools 0.3.7 2024-03-05 [1] CRAN (R 4.3.3)
|
gdtools 0.3.7 2024-03-05 [1] CRAN (R 4.4.1)
|
||||||
generics 0.1.3 2022-07-05 [1] CRAN (R 4.3.3)
|
generics 0.1.3 2022-07-05 [1] CRAN (R 4.4.1)
|
||||||
gfonts 0.2.0 2023-01-08 [1] CRAN (R 4.3.3)
|
gfonts 0.2.0 2023-01-08 [1] CRAN (R 4.4.1)
|
||||||
gghighlight 0.4.1 2023-12-16 [1] CRAN (R 4.3.3)
|
gghighlight 0.4.1 2023-12-16 [1] CRAN (R 4.4.1)
|
||||||
ggplot2 * 3.5.1 2024-04-23 [1] CRAN (R 4.3.3)
|
ggplot2 * 3.5.1 2024-04-23 [1] CRAN (R 4.4.1)
|
||||||
ggpmisc 0.5.6 2024-05-07 [1] CRAN (R 4.3.3)
|
ggpmisc 0.6.0 2024-06-28 [1] CRAN (R 4.4.1)
|
||||||
ggpp 0.5.7 2024-05-06 [1] CRAN (R 4.3.3)
|
ggpp 0.5.8-1 2024-07-01 [1] CRAN (R 4.4.1)
|
||||||
ggrepel 0.9.5 2024-01-10 [1] CRAN (R 4.3.3)
|
ggrepel 0.9.5 2024-01-10 [1] CRAN (R 4.4.1)
|
||||||
glue 1.7.0 2024-01-09 [1] CRAN (R 4.3.3)
|
glue 1.7.0 2024-01-09 [1] CRAN (R 4.4.1)
|
||||||
gridExtra 2.3 2017-09-09 [1] CRAN (R 4.3.3)
|
gridExtra 2.3 2017-09-09 [1] CRAN (R 4.4.1)
|
||||||
gtable 0.3.5 2024-04-22 [1] CRAN (R 4.3.3)
|
gtable 0.3.5 2024-04-22 [1] CRAN (R 4.4.1)
|
||||||
hms 1.1.3 2023-03-21 [1] CRAN (R 4.3.3)
|
hms 1.1.3 2023-03-21 [1] CRAN (R 4.4.1)
|
||||||
hrbrthemes 0.8.7 2024-03-04 [1] CRAN (R 4.3.3)
|
hrbrthemes 0.8.7 2024-03-04 [1] CRAN (R 4.4.1)
|
||||||
htmltools 0.5.8.1 2024-04-04 [1] CRAN (R 4.3.3)
|
htmltools 0.5.8.1 2024-04-04 [1] CRAN (R 4.4.1)
|
||||||
htmlwidgets 1.6.4 2023-12-06 [1] CRAN (R 4.3.3)
|
htmlwidgets 1.6.4 2023-12-06 [1] CRAN (R 4.4.1)
|
||||||
httpcode 0.3.0 2020-04-10 [1] CRAN (R 4.3.3)
|
httpcode 0.3.0 2020-04-10 [1] CRAN (R 4.4.1)
|
||||||
httpuv 1.6.15 2024-03-26 [1] CRAN (R 4.3.3)
|
httpuv 1.6.15 2024-03-26 [1] CRAN (R 4.4.1)
|
||||||
jsonlite 1.8.8 2023-12-04 [1] CRAN (R 4.3.3)
|
jsonlite 1.8.8 2023-12-04 [1] CRAN (R 4.4.1)
|
||||||
kableExtra 1.4.0 2024-01-24 [1] CRAN (R 4.3.3)
|
kableExtra 1.4.0 2024-01-24 [1] CRAN (R 4.4.1)
|
||||||
KernSmooth 2.23-22 2023-07-10 [2] CRAN (R 4.3.3)
|
KernSmooth 2.23-24 2024-05-17 [1] CRAN (R 4.4.1)
|
||||||
knitr 1.46 2024-04-06 [1] CRAN (R 4.3.3)
|
knitr 1.48 2024-07-07 [1] CRAN (R 4.4.1)
|
||||||
labeling 0.4.3 2023-08-29 [1] CRAN (R 4.3.1)
|
labeling 0.4.3 2023-08-29 [1] CRAN (R 4.4.0)
|
||||||
later 1.3.2 2023-12-06 [1] CRAN (R 4.3.3)
|
later 1.3.2 2023-12-06 [1] CRAN (R 4.4.1)
|
||||||
lattice 0.22-5 2023-10-24 [2] CRAN (R 4.3.3)
|
lattice 0.22-6 2024-03-20 [1] CRAN (R 4.4.1)
|
||||||
lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.3.3)
|
lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.4.1)
|
||||||
magrittr * 2.0.3 2022-03-30 [1] CRAN (R 4.3.3)
|
magrittr * 2.0.3 2022-03-30 [1] CRAN (R 4.4.1)
|
||||||
mapdata * 2.3.1 2022-11-01 [1] CRAN (R 4.3.3)
|
mapdata * 2.3.1 2022-11-01 [1] CRAN (R 4.4.1)
|
||||||
maps * 3.4.2 2023-12-15 [1] CRAN (R 4.3.3)
|
maps * 3.4.2 2023-12-15 [1] CRAN (R 4.4.1)
|
||||||
MASS 7.3-60.0.1 2024-01-13 [2] CRAN (R 4.3.3)
|
MASS 7.3-60.2 2024-04-26 [1] CRAN (R 4.4.1)
|
||||||
Matrix 1.6-5 2024-01-11 [2] CRAN (R 4.3.3)
|
Matrix 1.7-0 2024-04-26 [1] CRAN (R 4.4.1)
|
||||||
MatrixModels 0.5-3 2023-11-06 [1] CRAN (R 4.3.3)
|
MatrixModels 0.5-3 2023-11-06 [1] CRAN (R 4.4.1)
|
||||||
memoise 2.0.1 2021-11-26 [1] CRAN (R 4.3.3)
|
memoise 2.0.1 2021-11-26 [1] CRAN (R 4.4.1)
|
||||||
mgcv 1.9-1 2023-12-21 [2] CRAN (R 4.3.3)
|
mgcv 1.9-1 2023-12-21 [1] CRAN (R 4.4.1)
|
||||||
mime 0.12 2021-09-28 [1] CRAN (R 4.3.1)
|
mime 0.12 2021-09-28 [1] CRAN (R 4.4.0)
|
||||||
miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.3.3)
|
miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.4.1)
|
||||||
munsell 0.5.1 2024-04-01 [1] CRAN (R 4.3.3)
|
munsell 0.5.1 2024-04-01 [1] CRAN (R 4.4.1)
|
||||||
nlme 3.1-164 2023-11-27 [2] CRAN (R 4.3.3)
|
nlme 3.1-164 2023-11-27 [1] CRAN (R 4.4.1)
|
||||||
pagedown 0.20 2022-12-13 [1] CRAN (R 4.3.3)
|
pagedown 0.20 2022-12-13 [1] CRAN (R 4.4.1)
|
||||||
pillar 1.9.0 2023-03-22 [1] CRAN (R 4.3.3)
|
pillar 1.9.0 2023-03-22 [1] CRAN (R 4.4.1)
|
||||||
pkgbuild 1.4.4 2024-03-17 [1] CRAN (R 4.3.3)
|
pkgbuild 1.4.4 2024-03-17 [1] CRAN (R 4.4.1)
|
||||||
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.3.3)
|
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.4.1)
|
||||||
pkgload 1.3.4 2024-01-16 [1] CRAN (R 4.3.3)
|
pkgload 1.4.0 2024-06-28 [1] CRAN (R 4.4.1)
|
||||||
polynom 1.4-1 2022-04-11 [1] CRAN (R 4.3.3)
|
polynom 1.4-1 2022-04-11 [1] CRAN (R 4.4.1)
|
||||||
profvis 0.3.8 2023-05-02 [1] CRAN (R 4.3.3)
|
profvis 0.3.8 2023-05-02 [1] CRAN (R 4.4.1)
|
||||||
promises 1.3.0 2024-04-05 [1] CRAN (R 4.3.3)
|
promises 1.3.0 2024-04-05 [1] CRAN (R 4.4.1)
|
||||||
proxy 0.4-27 2022-06-09 [1] CRAN (R 4.3.3)
|
proxy 0.4-27 2022-06-09 [1] CRAN (R 4.4.1)
|
||||||
purrr 1.0.2 2023-08-10 [1] CRAN (R 4.3.3)
|
purrr 1.0.2 2023-08-10 [1] CRAN (R 4.4.1)
|
||||||
quantreg 5.97 2023-08-19 [1] CRAN (R 4.3.3)
|
quantreg 5.98 2024-05-26 [1] CRAN (R 4.4.1)
|
||||||
R6 2.5.1 2021-08-19 [1] CRAN (R 4.3.3)
|
R6 2.5.1 2021-08-19 [1] CRAN (R 4.4.1)
|
||||||
RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.3.1)
|
RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.4.0)
|
||||||
Rcpp 1.0.12 2024-01-09 [1] CRAN (R 4.3.3)
|
Rcpp 1.0.13 2024-07-17 [1] CRAN (R 4.4.1)
|
||||||
reactable 0.4.4 2023-03-12 [1] CRAN (R 4.3.3)
|
reactable 0.4.4 2023-03-12 [1] CRAN (R 4.4.1)
|
||||||
readr * 2.1.5 2024-01-10 [1] CRAN (R 4.3.3)
|
readr * 2.1.5 2024-01-10 [1] CRAN (R 4.4.1)
|
||||||
remotes 2.5.0 2024-03-17 [1] CRAN (R 4.3.3)
|
remotes 2.5.0 2024-03-17 [1] CRAN (R 4.4.1)
|
||||||
rlang 1.1.3 2024-01-10 [1] CRAN (R 4.3.3)
|
rlang 1.1.4 2024-06-04 [1] CRAN (R 4.4.1)
|
||||||
rmarkdown 2.26 2024-03-05 [1] CRAN (R 4.3.3)
|
rmarkdown 2.28 2024-08-17 [1] CRAN (R 4.4.1)
|
||||||
rstudioapi 0.16.0 2024-03-24 [1] CRAN (R 4.3.3)
|
rstudioapi 0.16.0 2024-03-24 [1] CRAN (R 4.4.1)
|
||||||
Rttf2pt1 1.3.12 2023-01-22 [1] CRAN (R 4.3.1)
|
Rttf2pt1 1.3.12 2023-01-22 [1] CRAN (R 4.4.0)
|
||||||
scales 1.3.0 2023-11-28 [1] CRAN (R 4.3.3)
|
scales 1.3.0 2023-11-28 [1] CRAN (R 4.4.1)
|
||||||
sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.3.3)
|
sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.4.1)
|
||||||
sf * 1.0-16 2024-03-24 [1] CRAN (R 4.3.3)
|
sf * 1.0-16 2024-03-24 [1] CRAN (R 4.4.1)
|
||||||
shiny 1.8.1.1 2024-04-02 [1] CRAN (R 4.3.3)
|
shiny 1.9.1 2024-08-01 [1] CRAN (R 4.4.1)
|
||||||
showtext 0.9-7 2024-03-02 [1] CRAN (R 4.3.3)
|
showtext 0.9-7 2024-03-02 [1] CRAN (R 4.4.1)
|
||||||
showtextdb 3.0 2020-06-04 [1] CRAN (R 4.3.3)
|
showtextdb 3.0 2020-06-04 [1] CRAN (R 4.4.1)
|
||||||
snakecase 0.11.1 2023-08-27 [1] CRAN (R 4.3.3)
|
snakecase 0.11.1 2023-08-27 [1] CRAN (R 4.4.1)
|
||||||
SparseM 1.81 2021-02-18 [1] CRAN (R 4.3.1)
|
SparseM 1.84-2 2024-07-17 [1] CRAN (R 4.4.1)
|
||||||
stringi 1.8.3 2023-12-11 [1] CRAN (R 4.3.2)
|
stringi 1.8.4 2024-05-06 [1] CRAN (R 4.4.0)
|
||||||
stringr 1.5.1 2023-11-14 [1] CRAN (R 4.3.3)
|
stringr 1.5.1 2023-11-14 [1] CRAN (R 4.4.1)
|
||||||
survival 3.5-8 2024-02-14 [2] CRAN (R 4.3.3)
|
survival 3.6-4 2024-04-24 [1] CRAN (R 4.4.1)
|
||||||
svglite 2.1.3 2023-12-08 [1] CRAN (R 4.3.3)
|
svglite 2.1.3 2023-12-08 [1] CRAN (R 4.4.1)
|
||||||
sysfonts 0.8.9 2024-03-02 [1] CRAN (R 4.3.3)
|
sysfonts 0.8.9 2024-03-02 [1] CRAN (R 4.4.1)
|
||||||
systemfonts 1.0.6 2024-03-07 [1] CRAN (R 4.3.3)
|
systemfonts 1.1.0 2024-05-15 [1] CRAN (R 4.4.1)
|
||||||
tibble 3.2.1 2023-03-20 [1] CRAN (R 4.3.3)
|
tibble 3.2.1 2023-03-20 [1] CRAN (R 4.4.1)
|
||||||
tidyr * 1.3.1 2024-01-24 [1] CRAN (R 4.3.3)
|
tidyr * 1.3.1 2024-01-24 [1] CRAN (R 4.4.1)
|
||||||
tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.3.3)
|
tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.4.1)
|
||||||
tzdb 0.4.0 2023-05-12 [1] CRAN (R 4.3.3)
|
tzdb 0.4.0 2023-05-12 [1] CRAN (R 4.4.1)
|
||||||
units 0.8-5 2023-11-28 [1] CRAN (R 4.3.3)
|
units 0.8-5 2023-11-28 [1] CRAN (R 4.4.1)
|
||||||
urlchecker 1.0.1 2021-11-30 [1] CRAN (R 4.3.3)
|
urlchecker 1.0.1 2021-11-30 [1] CRAN (R 4.4.1)
|
||||||
usethis 2.2.3 2024-02-19 [1] CRAN (R 4.3.3)
|
usethis 3.0.0 2024-07-29 [1] CRAN (R 4.4.1)
|
||||||
utf8 1.2.4 2023-10-22 [1] CRAN (R 4.3.3)
|
utf8 1.2.4 2023-10-22 [1] CRAN (R 4.4.1)
|
||||||
vctrs 0.6.5 2023-12-01 [1] CRAN (R 4.3.3)
|
vctrs 0.6.5 2023-12-01 [1] CRAN (R 4.4.1)
|
||||||
viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.3.3)
|
viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.4.1)
|
||||||
vroom 1.6.5 2023-12-05 [1] CRAN (R 4.3.3)
|
vroom 1.6.5 2023-12-05 [1] CRAN (R 4.4.1)
|
||||||
withr 3.0.0 2024-01-16 [1] CRAN (R 4.3.3)
|
withr 3.0.0 2024-01-16 [1] CRAN (R 4.4.1)
|
||||||
xfun 0.43 2024-03-25 [1] CRAN (R 4.3.3)
|
xfun 0.46 2024-07-18 [1] CRAN (R 4.4.1)
|
||||||
xml2 1.3.6 2023-12-04 [1] CRAN (R 4.3.3)
|
xml2 1.3.6 2023-12-04 [1] CRAN (R 4.4.1)
|
||||||
xtable 1.8-4 2019-04-21 [1] CRAN (R 4.3.3)
|
xtable 1.8-4 2019-04-21 [1] CRAN (R 4.4.1)
|
||||||
yaml 2.3.8 2023-12-11 [1] CRAN (R 4.3.2)
|
yaml 2.3.10 2024-07-26 [1] CRAN (R 4.4.1)
|
||||||
|
|
||||||
[1] C:/Users/belangew/AppData/Local/R/win-library/4.3
|
[1] C:/Program Files/R/R-4.4.1/library
|
||||||
[2] C:/Program Files/R/R-4.3.3/library
|
|
||||||
|
|
||||||
──────────────────────────────────────────────────────────────────────────────</code></pre>
|
──────────────────────────────────────────────────────────────────────────────</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1139,18 +1138,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -1182,7 +1170,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -1190,7 +1200,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2020-07-25">
|
<meta name="dcterms.date" content="2020-07-25">
|
||||||
|
|
||||||
<title>Kyle Belanger - Diabetes in Rural North Carolina : Data Collection and Cleaning</title>
|
<title>Diabetes in Rural North Carolina : Data Collection and Cleaning – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -89,7 +89,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -166,7 +166,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -188,8 +188,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
<hr>
|
<hr>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<div class="cell-output-display">
|
<div class="cell-output-display">
|
||||||
<div>
|
<table class="table caption-top table-sm table-striped small" data-quarto-postprocess="true">
|
||||||
<table class="table table-sm table-striped small" data-quarto-postprocess="true">
|
|
||||||
<caption>Data Sources</caption>
|
<caption>Data Sources</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
|
@ -228,7 +227,6 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -238,8 +236,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
<p>View greeter script <a href="https://github.com/mmmmtoasty19/nc-diabetes-epidemic-2020/blob/master/manipulation/publish/0-greeter-census-rural-housing.md">here</a></p>
|
<p>View greeter script <a href="https://github.com/mmmmtoasty19/nc-diabetes-epidemic-2020/blob/master/manipulation/publish/0-greeter-census-rural-housing.md">here</a></p>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<div class="cell-output-display">
|
<div class="cell-output-display">
|
||||||
<div>
|
<table class="table caption-top table-sm table-striped small" data-quarto-postprocess="true">
|
||||||
<table class="table table-sm table-striped small" data-quarto-postprocess="true">
|
|
||||||
<caption>Rural Housing Data Set</caption>
|
<caption>Rural Housing Data Set</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
|
@ -295,7 +292,6 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -305,8 +301,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
<p>View greeter script <a href="https://github.com/mmmmtoasty19/nc-diabetes-epidemic-2020/blob/master/manipulation/publish/0-greeter-county-rankings-national.md">here</a></p>
|
<p>View greeter script <a href="https://github.com/mmmmtoasty19/nc-diabetes-epidemic-2020/blob/master/manipulation/publish/0-greeter-county-rankings-national.md">here</a></p>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<div class="cell-output-display">
|
<div class="cell-output-display">
|
||||||
<div>
|
<table class="table caption-top table-sm table-striped small" data-quarto-postprocess="true">
|
||||||
<table class="table table-sm table-striped small" data-quarto-postprocess="true">
|
|
||||||
<caption>County Health Rankings Sources</caption>
|
<caption>County Health Rankings Sources</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
|
@ -352,14 +347,12 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<div class="cell-output-display">
|
<div class="cell-output-display">
|
||||||
<div>
|
<table class="table caption-top table-sm table-striped small" data-quarto-postprocess="true">
|
||||||
<table class="table table-sm table-striped small" data-quarto-postprocess="true">
|
|
||||||
<caption>County Risk Factors Data Set</caption>
|
<caption>County Risk Factors Data Set</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
|
@ -442,7 +435,6 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -452,9 +444,8 @@ ul.task-list li input[type="checkbox"] {
|
||||||
<p>View greeter script <a href="https://github.com/mmmmtoasty19/nc-diabetes-epidemic-2020/blob/master/manipulation/publish/0-greeter-us-county-population-estimates.md">here</a></p>
|
<p>View greeter script <a href="https://github.com/mmmmtoasty19/nc-diabetes-epidemic-2020/blob/master/manipulation/publish/0-greeter-us-county-population-estimates.md">here</a></p>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<div class="cell-output-display">
|
<div class="cell-output-display">
|
||||||
<div>
|
|
||||||
<div style="border: 1px solid #ddd; padding: 5px; overflow-x: scroll; width:100%; ">
|
<div style="border: 1px solid #ddd; padding: 5px; overflow-x: scroll; width:100%; ">
|
||||||
<table class="table table-sm table-striped small" data-quarto-postprocess="true">
|
<table class="table caption-top table-sm table-striped small" data-quarto-postprocess="true">
|
||||||
<caption>US Population Estimates Data Set</caption>
|
<caption>US Population Estimates Data Set</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
|
@ -807,7 +798,6 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -817,8 +807,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
<p>View greeter script <a href="https://github.com/mmmmtoasty19/nc-diabetes-epidemic-2020/blob/master/manipulation/publish/0-greeter-us-diabetes.md">here</a></p>
|
<p>View greeter script <a href="https://github.com/mmmmtoasty19/nc-diabetes-epidemic-2020/blob/master/manipulation/publish/0-greeter-us-diabetes.md">here</a></p>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<div class="cell-output-display">
|
<div class="cell-output-display">
|
||||||
<div>
|
<table class="table caption-top table-sm table-striped small" data-quarto-postprocess="true">
|
||||||
<table class="table table-sm table-striped small" data-quarto-postprocess="true">
|
|
||||||
<caption>US Diabetes Data</caption>
|
<caption>US Diabetes Data</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
|
@ -876,7 +865,6 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -937,18 +925,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -980,7 +957,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -988,7 +987,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2021-01-12">
|
<meta name="dcterms.date" content="2021-01-12">
|
||||||
|
|
||||||
<title>Kyle Belanger - Converting From Blogdown to Distill</title>
|
<title>Converting From Blogdown to Distill – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -35,7 +35,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -119,7 +119,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -204,7 +204,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -313,18 +313,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -356,7 +345,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -364,7 +375,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2021-02-26">
|
<meta name="dcterms.date" content="2021-02-26">
|
||||||
|
|
||||||
<title>Kyle Belanger - TidyTuesday 2021 Week 6: HBCU Enrollment</title>
|
<title>TidyTuesday 2021 Week 6: HBCU Enrollment – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -35,7 +35,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -119,7 +119,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -193,7 +193,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -584,18 +584,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -627,7 +616,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -635,7 +646,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -1,587 +1,2 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"></html>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
|
||||||
<meta name="dcterms.date" content="2022-07-28">
|
|
||||||
|
|
||||||
<title>Kyle Belanger - Making Maps in R</title>
|
|
||||||
<style>
|
|
||||||
code{white-space: pre-wrap;}
|
|
||||||
span.smallcaps{font-variant: small-caps;}
|
|
||||||
div.columns{display: flex; gap: min(4vw, 1.5em);}
|
|
||||||
div.column{flex: auto; overflow-x: auto;}
|
|
||||||
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
|
|
||||||
ul.task-list{list-style: none;}
|
|
||||||
ul.task-list li input[type="checkbox"] {
|
|
||||||
width: 0.8em;
|
|
||||||
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../../site_libs/quarto-nav/quarto-nav.js"></script>
|
|
||||||
<script src="../../site_libs/quarto-nav/headroom.min.js"></script>
|
|
||||||
<script src="../../site_libs/clipboard/clipboard.min.js"></script>
|
|
||||||
<script src="../../site_libs/quarto-search/autocomplete.umd.js"></script>
|
|
||||||
<script src="../../site_libs/quarto-search/fuse.min.js"></script>
|
|
||||||
<script src="../../site_libs/quarto-search/quarto-search.js"></script>
|
|
||||||
<meta name="quarto:offset" content="../../">
|
|
||||||
<script src="../../site_libs/quarto-html/quarto.js"></script>
|
|
||||||
<script src="../../site_libs/quarto-html/popper.min.js"></script>
|
|
||||||
<script src="../../site_libs/quarto-html/tippy.umd.min.js"></script>
|
|
||||||
<script src="../../site_libs/quarto-html/anchor.min.js"></script>
|
|
||||||
<link href="../../site_libs/quarto-html/tippy.css" rel="stylesheet">
|
|
||||||
<link href="../../site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
|
|
||||||
<script src="../../site_libs/bootstrap/bootstrap.min.js"></script>
|
|
||||||
<link href="../../site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
|
|
||||||
<link href="../../site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
|
|
||||||
<script id="quarto-search-options" type="application/json">{
|
|
||||||
"location": "navbar",
|
|
||||||
"copy-button": false,
|
|
||||||
"collapse-after": 3,
|
|
||||||
"panel-placement": "end",
|
|
||||||
"type": "overlay",
|
|
||||||
"limit": 50,
|
|
||||||
"keyboard-shortcut": [
|
|
||||||
"f",
|
|
||||||
"/",
|
|
||||||
"s"
|
|
||||||
],
|
|
||||||
"show-item-context": false,
|
|
||||||
"language": {
|
|
||||||
"search-no-results-text": "No results",
|
|
||||||
"search-matching-documents-text": "matching documents",
|
|
||||||
"search-copy-link-title": "Copy link to search",
|
|
||||||
"search-hide-matches-text": "Hide additional matches",
|
|
||||||
"search-more-match-text": "more match in this document",
|
|
||||||
"search-more-matches-text": "more matches in this document",
|
|
||||||
"search-clear-button-title": "Clear",
|
|
||||||
"search-text-placeholder": "",
|
|
||||||
"search-detached-cancel-button-title": "Cancel",
|
|
||||||
"search-submit-button-title": "Submit",
|
|
||||||
"search-label": "Search"
|
|
||||||
}
|
|
||||||
}</script>
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../../styles.css">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="floating nav-fixed">
|
|
||||||
|
|
||||||
<div id="quarto-search-results"></div>
|
|
||||||
<header id="quarto-header" class="headroom fixed-top quarto-banner">
|
|
||||||
<nav class="navbar navbar-expand-lg " data-bs-theme="dark">
|
|
||||||
<div class="navbar-container container-fluid">
|
|
||||||
<div class="navbar-brand-container mx-auto">
|
|
||||||
<a class="navbar-brand" href="../../index.html">
|
|
||||||
<span class="navbar-title">Kyle Belanger</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
|
||||||
<ul class="navbar-nav navbar-nav-scroll ms-auto">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../../blog.html">
|
|
||||||
<span class="menu-text">Posts</span></a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../../kyle_resume.pdf">
|
|
||||||
<span class="menu-text">Resume</span></a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item compact">
|
|
||||||
<a class="nav-link" href="https://github.com/mmmmtoasty19"> <i class="bi bi-github" role="img">
|
|
||||||
</i>
|
|
||||||
<span class="menu-text"></span></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div> <!-- /navcollapse -->
|
|
||||||
<div class="quarto-navbar-tools">
|
|
||||||
</div>
|
|
||||||
</div> <!-- /container-fluid -->
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
<!-- content -->
|
|
||||||
<header id="title-block-header" class="quarto-title-block default toc-left page-columns page-full">
|
|
||||||
<div class="quarto-title-banner page-columns page-full">
|
|
||||||
<div class="quarto-title column-body">
|
|
||||||
<h1 class="title">Making Maps in R</h1>
|
|
||||||
<p class="subtitle lead"></p><p>A short description of the post.</p><p></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="quarto-title-meta">
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<div class="quarto-title-meta-heading">Author</div>
|
|
||||||
<div class="quarto-title-meta-contents">
|
|
||||||
<p><a href="https://kyleb.rbind.io/">Kyle Belanger</a> </p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<div class="quarto-title-meta-heading">Published</div>
|
|
||||||
<div class="quarto-title-meta-contents">
|
|
||||||
<p class="date">July 28, 2022</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</header><div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
|
|
||||||
<!-- sidebar -->
|
|
||||||
<nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal quarto-sidebar-collapse-item sidebar-navigation floating overflow-auto">
|
|
||||||
|
|
||||||
</nav>
|
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
|
||||||
<!-- margin-sidebar -->
|
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
|
||||||
</div>
|
|
||||||
<!-- main -->
|
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>Distill is a publication format for scientific and technical writing, native to the web.</p>
|
|
||||||
<p>Learn more about using Distill at <a href="https://rstudio.github.io/distill" class="uri">https://rstudio.github.io/distill</a>.</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-reuse"><h2 class="anchored quarto-appendix-heading">Reuse</h2><div class="quarto-appendix-contents"><div><a rel="license" href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></div></div></section><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@online{belanger2022,
|
|
||||||
author = {Belanger, Kyle},
|
|
||||||
title = {Making {Maps} in {R}},
|
|
||||||
date = {2022-07-28},
|
|
||||||
langid = {en}
|
|
||||||
}
|
|
||||||
</code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-belanger2022" class="csl-entry quarto-appendix-citeas" role="listitem">
|
|
||||||
Belanger, Kyle. 2022. <span>“Making Maps in R.”</span> July 28, 2022.
|
|
||||||
</div></div></section></div></main> <!-- /main -->
|
|
||||||
<script id="quarto-html-after-body" type="application/javascript">
|
|
||||||
window.document.addEventListener("DOMContentLoaded", function (event) {
|
|
||||||
const toggleBodyColorMode = (bsSheetEl) => {
|
|
||||||
const mode = bsSheetEl.getAttribute("data-mode");
|
|
||||||
const bodyEl = window.document.querySelector("body");
|
|
||||||
if (mode === "dark") {
|
|
||||||
bodyEl.classList.add("quarto-dark");
|
|
||||||
bodyEl.classList.remove("quarto-light");
|
|
||||||
} else {
|
|
||||||
bodyEl.classList.add("quarto-light");
|
|
||||||
bodyEl.classList.remove("quarto-dark");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const toggleBodyColorPrimary = () => {
|
|
||||||
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
|
|
||||||
if (bsSheetEl) {
|
|
||||||
toggleBodyColorMode(bsSheetEl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
toggleBodyColorPrimary();
|
|
||||||
const icon = "";
|
|
||||||
const anchorJS = new window.AnchorJS();
|
|
||||||
anchorJS.options = {
|
|
||||||
placement: 'right',
|
|
||||||
icon: icon
|
|
||||||
};
|
|
||||||
anchorJS.add('.anchored');
|
|
||||||
const isCodeAnnotation = (el) => {
|
|
||||||
for (const clz of el.classList) {
|
|
||||||
if (clz.startsWith('code-annotation-')) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
|
||||||
const button = e.trigger;
|
|
||||||
// don't keep focus
|
|
||||||
button.blur();
|
|
||||||
// flash "checked"
|
|
||||||
button.classList.add('code-copy-button-checked');
|
|
||||||
var currentTitle = button.getAttribute("title");
|
|
||||||
button.setAttribute("title", "Copied!");
|
|
||||||
let tooltip;
|
|
||||||
if (window.bootstrap) {
|
|
||||||
button.setAttribute("data-bs-toggle", "tooltip");
|
|
||||||
button.setAttribute("data-bs-placement", "left");
|
|
||||||
button.setAttribute("data-bs-title", "Copied!");
|
|
||||||
tooltip = new bootstrap.Tooltip(button,
|
|
||||||
{ trigger: "manual",
|
|
||||||
customClass: "code-copy-button-tooltip",
|
|
||||||
offset: [0, -8]});
|
|
||||||
tooltip.show();
|
|
||||||
}
|
|
||||||
setTimeout(function() {
|
|
||||||
if (tooltip) {
|
|
||||||
tooltip.hide();
|
|
||||||
button.removeAttribute("data-bs-title");
|
|
||||||
button.removeAttribute("data-bs-toggle");
|
|
||||||
button.removeAttribute("data-bs-placement");
|
|
||||||
}
|
|
||||||
button.setAttribute("title", currentTitle);
|
|
||||||
button.classList.remove('code-copy-button-checked');
|
|
||||||
}, 1000);
|
|
||||||
// clear code selection
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
|
||||||
var isInternal = (href) => {
|
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
|
||||||
}
|
|
||||||
// Inspect non-navigation links and adorn them if external
|
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
|
||||||
for (var i=0; i<links.length; i++) {
|
|
||||||
const link = links[i];
|
|
||||||
if (!isInternal(link.href)) {
|
|
||||||
// undo the damage that might have been done by quarto-nav.js in the case of
|
|
||||||
// links that we want to consider external
|
|
||||||
if (link.dataset.originalHref !== undefined) {
|
|
||||||
link.href = link.dataset.originalHref;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
|
|
||||||
const config = {
|
|
||||||
allowHTML: true,
|
|
||||||
maxWidth: 500,
|
|
||||||
delay: 100,
|
|
||||||
arrow: false,
|
|
||||||
appendTo: function(el) {
|
|
||||||
return el.parentElement;
|
|
||||||
},
|
|
||||||
interactive: true,
|
|
||||||
interactiveBorder: 10,
|
|
||||||
theme: 'quarto',
|
|
||||||
placement: 'bottom-start',
|
|
||||||
};
|
|
||||||
if (contentFn) {
|
|
||||||
config.content = contentFn;
|
|
||||||
}
|
|
||||||
if (onTriggerFn) {
|
|
||||||
config.onTrigger = onTriggerFn;
|
|
||||||
}
|
|
||||||
if (onUntriggerFn) {
|
|
||||||
config.onUntrigger = onUntriggerFn;
|
|
||||||
}
|
|
||||||
window.tippy(el, config);
|
|
||||||
}
|
|
||||||
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
|
|
||||||
for (var i=0; i<noterefs.length; i++) {
|
|
||||||
const ref = noterefs[i];
|
|
||||||
tippyHover(ref, function() {
|
|
||||||
// use id or data attribute instead here
|
|
||||||
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
|
|
||||||
try { href = new URL(href).hash; } catch {}
|
|
||||||
const id = href.replace(/^#\/?/, "");
|
|
||||||
const note = window.document.getElementById(id);
|
|
||||||
if (note) {
|
|
||||||
return note.innerHTML;
|
|
||||||
} else {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const xrefs = window.document.querySelectorAll('a.quarto-xref');
|
|
||||||
const processXRef = (id, note) => {
|
|
||||||
// Strip column container classes
|
|
||||||
const stripColumnClz = (el) => {
|
|
||||||
el.classList.remove("page-full", "page-columns");
|
|
||||||
if (el.children) {
|
|
||||||
for (const child of el.children) {
|
|
||||||
stripColumnClz(child);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stripColumnClz(note)
|
|
||||||
if (id === null || id.startsWith('sec-')) {
|
|
||||||
// Special case sections, only their first couple elements
|
|
||||||
const container = document.createElement("div");
|
|
||||||
if (note.children && note.children.length > 2) {
|
|
||||||
container.appendChild(note.children[0].cloneNode(true));
|
|
||||||
for (let i = 1; i < note.children.length; i++) {
|
|
||||||
const child = note.children[i];
|
|
||||||
if (child.tagName === "P" && child.innerText === "") {
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
container.appendChild(child.cloneNode(true));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (window.Quarto?.typesetMath) {
|
|
||||||
window.Quarto.typesetMath(container);
|
|
||||||
}
|
|
||||||
return container.innerHTML
|
|
||||||
} else {
|
|
||||||
if (window.Quarto?.typesetMath) {
|
|
||||||
window.Quarto.typesetMath(note);
|
|
||||||
}
|
|
||||||
return note.innerHTML;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// Remove any anchor links if they are present
|
|
||||||
const anchorLink = note.querySelector('a.anchorjs-link');
|
|
||||||
if (anchorLink) {
|
|
||||||
anchorLink.remove();
|
|
||||||
}
|
|
||||||
if (window.Quarto?.typesetMath) {
|
|
||||||
window.Quarto.typesetMath(note);
|
|
||||||
}
|
|
||||||
// TODO in 1.5, we should make sure this works without a callout special case
|
|
||||||
if (note.classList.contains("callout")) {
|
|
||||||
return note.outerHTML;
|
|
||||||
} else {
|
|
||||||
return note.innerHTML;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (var i=0; i<xrefs.length; i++) {
|
|
||||||
const xref = xrefs[i];
|
|
||||||
tippyHover(xref, undefined, function(instance) {
|
|
||||||
instance.disable();
|
|
||||||
let url = xref.getAttribute('href');
|
|
||||||
let hash = undefined;
|
|
||||||
if (url.startsWith('#')) {
|
|
||||||
hash = url;
|
|
||||||
} else {
|
|
||||||
try { hash = new URL(url).hash; } catch {}
|
|
||||||
}
|
|
||||||
if (hash) {
|
|
||||||
const id = hash.replace(/^#\/?/, "");
|
|
||||||
const note = window.document.getElementById(id);
|
|
||||||
if (note !== null) {
|
|
||||||
try {
|
|
||||||
const html = processXRef(id, note.cloneNode(true));
|
|
||||||
instance.setContent(html);
|
|
||||||
} finally {
|
|
||||||
instance.enable();
|
|
||||||
instance.show();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// See if we can fetch this
|
|
||||||
fetch(url.split('#')[0])
|
|
||||||
.then(res => res.text())
|
|
||||||
.then(html => {
|
|
||||||
const parser = new DOMParser();
|
|
||||||
const htmlDoc = parser.parseFromString(html, "text/html");
|
|
||||||
const note = htmlDoc.getElementById(id);
|
|
||||||
if (note !== null) {
|
|
||||||
const html = processXRef(id, note);
|
|
||||||
instance.setContent(html);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
instance.enable();
|
|
||||||
instance.show();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// See if we can fetch a full url (with no hash to target)
|
|
||||||
// This is a special case and we should probably do some content thinning / targeting
|
|
||||||
fetch(url)
|
|
||||||
.then(res => res.text())
|
|
||||||
.then(html => {
|
|
||||||
const parser = new DOMParser();
|
|
||||||
const htmlDoc = parser.parseFromString(html, "text/html");
|
|
||||||
const note = htmlDoc.querySelector('main.content');
|
|
||||||
if (note !== null) {
|
|
||||||
// This should only happen for chapter cross references
|
|
||||||
// (since there is no id in the URL)
|
|
||||||
// remove the first header
|
|
||||||
if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
|
|
||||||
note.children[0].remove();
|
|
||||||
}
|
|
||||||
const html = processXRef(null, note);
|
|
||||||
instance.setContent(html);
|
|
||||||
}
|
|
||||||
}).finally(() => {
|
|
||||||
instance.enable();
|
|
||||||
instance.show();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}, function(instance) {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
let selectedAnnoteEl;
|
|
||||||
const selectorForAnnotation = ( cell, annotation) => {
|
|
||||||
let cellAttr = 'data-code-cell="' + cell + '"';
|
|
||||||
let lineAttr = 'data-code-annotation="' + annotation + '"';
|
|
||||||
const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
|
|
||||||
return selector;
|
|
||||||
}
|
|
||||||
const selectCodeLines = (annoteEl) => {
|
|
||||||
const doc = window.document;
|
|
||||||
const targetCell = annoteEl.getAttribute("data-target-cell");
|
|
||||||
const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
|
|
||||||
const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
|
|
||||||
const lines = annoteSpan.getAttribute("data-code-lines").split(",");
|
|
||||||
const lineIds = lines.map((line) => {
|
|
||||||
return targetCell + "-" + line;
|
|
||||||
})
|
|
||||||
let top = null;
|
|
||||||
let height = null;
|
|
||||||
let parent = null;
|
|
||||||
if (lineIds.length > 0) {
|
|
||||||
//compute the position of the single el (top and bottom and make a div)
|
|
||||||
const el = window.document.getElementById(lineIds[0]);
|
|
||||||
top = el.offsetTop;
|
|
||||||
height = el.offsetHeight;
|
|
||||||
parent = el.parentElement.parentElement;
|
|
||||||
if (lineIds.length > 1) {
|
|
||||||
const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
|
|
||||||
const bottom = lastEl.offsetTop + lastEl.offsetHeight;
|
|
||||||
height = bottom - top;
|
|
||||||
}
|
|
||||||
if (top !== null && height !== null && parent !== null) {
|
|
||||||
// cook up a div (if necessary) and position it
|
|
||||||
let div = window.document.getElementById("code-annotation-line-highlight");
|
|
||||||
if (div === null) {
|
|
||||||
div = window.document.createElement("div");
|
|
||||||
div.setAttribute("id", "code-annotation-line-highlight");
|
|
||||||
div.style.position = 'absolute';
|
|
||||||
parent.appendChild(div);
|
|
||||||
}
|
|
||||||
div.style.top = top - 2 + "px";
|
|
||||||
div.style.height = height + 4 + "px";
|
|
||||||
div.style.left = 0;
|
|
||||||
let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
|
|
||||||
if (gutterDiv === null) {
|
|
||||||
gutterDiv = window.document.createElement("div");
|
|
||||||
gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
|
|
||||||
gutterDiv.style.position = 'absolute';
|
|
||||||
const codeCell = window.document.getElementById(targetCell);
|
|
||||||
const gutter = codeCell.querySelector('.code-annotation-gutter');
|
|
||||||
gutter.appendChild(gutterDiv);
|
|
||||||
}
|
|
||||||
gutterDiv.style.top = top - 2 + "px";
|
|
||||||
gutterDiv.style.height = height + 4 + "px";
|
|
||||||
}
|
|
||||||
selectedAnnoteEl = annoteEl;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const unselectCodeLines = () => {
|
|
||||||
const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
|
|
||||||
elementsIds.forEach((elId) => {
|
|
||||||
const div = window.document.getElementById(elId);
|
|
||||||
if (div) {
|
|
||||||
div.remove();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
selectedAnnoteEl = undefined;
|
|
||||||
};
|
|
||||||
// Handle positioning of the toggle
|
|
||||||
window.addEventListener(
|
|
||||||
"resize",
|
|
||||||
throttle(() => {
|
|
||||||
elRect = undefined;
|
|
||||||
if (selectedAnnoteEl) {
|
|
||||||
selectCodeLines(selectedAnnoteEl);
|
|
||||||
}
|
|
||||||
}, 10)
|
|
||||||
);
|
|
||||||
function throttle(fn, ms) {
|
|
||||||
let throttle = false;
|
|
||||||
let timer;
|
|
||||||
return (...args) => {
|
|
||||||
if(!throttle) { // first call gets through
|
|
||||||
fn.apply(this, args);
|
|
||||||
throttle = true;
|
|
||||||
} else { // all the others get throttled
|
|
||||||
if(timer) clearTimeout(timer); // cancel #2
|
|
||||||
timer = setTimeout(() => {
|
|
||||||
fn.apply(this, args);
|
|
||||||
timer = throttle = false;
|
|
||||||
}, ms);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// Attach click handler to the DT
|
|
||||||
const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
|
|
||||||
for (const annoteDlNode of annoteDls) {
|
|
||||||
annoteDlNode.addEventListener('click', (event) => {
|
|
||||||
const clickedEl = event.target;
|
|
||||||
if (clickedEl !== selectedAnnoteEl) {
|
|
||||||
unselectCodeLines();
|
|
||||||
const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
|
|
||||||
if (activeEl) {
|
|
||||||
activeEl.classList.remove('code-annotation-active');
|
|
||||||
}
|
|
||||||
selectCodeLines(clickedEl);
|
|
||||||
clickedEl.classList.add('code-annotation-active');
|
|
||||||
} else {
|
|
||||||
// Unselect the line
|
|
||||||
unselectCodeLines();
|
|
||||||
clickedEl.classList.remove('code-annotation-active');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const findCites = (el) => {
|
|
||||||
const parentEl = el.parentElement;
|
|
||||||
if (parentEl) {
|
|
||||||
const cites = parentEl.dataset.cites;
|
|
||||||
if (cites) {
|
|
||||||
return {
|
|
||||||
el,
|
|
||||||
cites: cites.split(' ')
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
return findCites(el.parentElement)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
|
|
||||||
for (var i=0; i<bibliorefs.length; i++) {
|
|
||||||
const ref = bibliorefs[i];
|
|
||||||
const citeInfo = findCites(ref);
|
|
||||||
if (citeInfo) {
|
|
||||||
tippyHover(citeInfo.el, function() {
|
|
||||||
var popup = window.document.createElement('div');
|
|
||||||
citeInfo.cites.forEach(function(cite) {
|
|
||||||
var citeDiv = window.document.createElement('div');
|
|
||||||
citeDiv.classList.add('hanging-indent');
|
|
||||||
citeDiv.classList.add('csl-entry');
|
|
||||||
var biblioDiv = window.document.getElementById('ref-' + cite);
|
|
||||||
if (biblioDiv) {
|
|
||||||
citeDiv.innerHTML = biblioDiv.innerHTML;
|
|
||||||
}
|
|
||||||
popup.appendChild(citeDiv);
|
|
||||||
});
|
|
||||||
return popup.innerHTML;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</div> <!-- /content -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
|
@ -2,14 +2,14 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2023-10-12">
|
<meta name="dcterms.date" content="2023-10-12">
|
||||||
|
|
||||||
<title>Kyle Belanger - Reflex Testing using Machine Learning in the Clinical Laboratory</title>
|
<title>Reflex Testing using Machine Learning in the Clinical Laboratory – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -85,7 +85,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -154,7 +154,7 @@ ul.task-list li input[type="checkbox"] {
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -223,18 +223,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -266,7 +255,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -274,7 +285,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="generator" content="quarto-1.4.553">
|
<meta name="generator" content="quarto-1.5.56">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
<meta name="dcterms.date" content="2024-06-08">
|
<meta name="dcterms.date" content="2024-06-08">
|
||||||
<meta name="description" content="Inspired by TidyTuesday Week 2 - 2024 dataset about Candian Players, lets look at the same anaylyis for American Born Players">
|
<meta name="description" content="Inspired by TidyTuesday Week 2 - 2024 dataset about Candian Players, lets look at the same anaylyis for American Born Players">
|
||||||
|
|
||||||
<title>Kyle Belanger - Does a US Born Players Birthdate affect their shot at the NHL</title>
|
<title>Does a US Born Players Birthdate affect their shot at the NHL – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
code{white-space: pre-wrap;}
|
code{white-space: pre-wrap;}
|
||||||
span.smallcaps{font-variant: small-caps;}
|
span.smallcaps{font-variant: small-caps;}
|
||||||
|
@ -36,7 +36,7 @@ div.sourceCode { overflow: auto; }
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
pre > code.sourceCode { white-space: pre-wrap; }
|
pre > code.sourceCode { white-space: pre-wrap; }
|
||||||
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
|
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
|
||||||
}
|
}
|
||||||
pre.numberSource code
|
pre.numberSource code
|
||||||
{ counter-reset: source-line 0; }
|
{ counter-reset: source-line 0; }
|
||||||
|
@ -124,7 +124,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="quarto-search" class="" title="Search"></div>
|
<div id="quarto-search" class="" title="Search"></div>
|
||||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
|
@ -207,7 +207,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</nav>
|
</nav>
|
||||||
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
|
||||||
<!-- margin-sidebar -->
|
<!-- margin-sidebar -->
|
||||||
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
|
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">
|
||||||
</div>
|
</div>
|
||||||
<!-- main -->
|
<!-- main -->
|
||||||
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
<main class="content quarto-banner-title-block" id="quarto-document-content">
|
||||||
|
@ -248,8 +248,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
<span id="cb2-14"><a href="#cb2-14" aria-hidden="true" tabindex="-1"></a> kableExtra<span class="sc">::</span><span class="fu">kbl</span>() <span class="sc">%>%</span></span>
|
<span id="cb2-14"><a href="#cb2-14" aria-hidden="true" tabindex="-1"></a> kableExtra<span class="sc">::</span><span class="fu">kbl</span>() <span class="sc">%>%</span></span>
|
||||||
<span id="cb2-15"><a href="#cb2-15" aria-hidden="true" tabindex="-1"></a> kableExtra<span class="sc">::</span><span class="fu">kable_styling</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
|
<span id="cb2-15"><a href="#cb2-15" aria-hidden="true" tabindex="-1"></a> kableExtra<span class="sc">::</span><span class="fu">kable_styling</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
|
||||||
<div class="cell-output-display">
|
<div class="cell-output-display">
|
||||||
<div>
|
<table class="table caption-top table-sm table-striped small" data-quarto-postprocess="true">
|
||||||
<table class="table table-sm table-striped small" data-quarto-postprocess="true">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
<th style="text-align: left;" data-quarto-table-cell-role="th">Month</th>
|
<th style="text-align: left;" data-quarto-table-cell-role="th">Month</th>
|
||||||
|
@ -348,7 +347,6 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -356,6 +354,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
<section id="hockey-data" class="level2">
|
<section id="hockey-data" class="level2">
|
||||||
<h2 class="anchored" data-anchor-id="hockey-data">Hockey Data</h2>
|
<h2 class="anchored" data-anchor-id="hockey-data">Hockey Data</h2>
|
||||||
<p>While I wish I could sit and type out how I sat and figured out the complexity of the NHL Stats API and how to bring it into R. In reality I took a great guide, that being Jlaws post, and tweaked what I needed. Instead of Canadian players, I pulled out just the US Born players and their birth dates. I did also pull out positions to see if that will make any sort of difference. What pulls out of the NHL API has a ton of great details and I look forward to diving into what is available to see what kind of graphics can be built.</p>
|
<p>While I wish I could sit and type out how I sat and figured out the complexity of the NHL Stats API and how to bring it into R. In reality I took a great guide, that being Jlaws post, and tweaked what I needed. Instead of Canadian players, I pulled out just the US Born players and their birth dates. I did also pull out positions to see if that will make any sort of difference. What pulls out of the NHL API has a ton of great details and I look forward to diving into what is available to see what kind of graphics can be built.</p>
|
||||||
|
<p><strong>08/27/2024 Update</strong> Due to the the Coyotes moving to Utah, I had to edit the code slightly to adjust for this. When gathering the active roster data the API was returning a blank response. This was causing Tidyr Hoist to fail because it could not pull the columns from the nested data frame. I added a check to see if the data frame is empty and if it is, then I return an empty data frame and skip this step.</p>
|
||||||
<div class="cell">
|
<div class="cell">
|
||||||
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>teams <span class="ot"><-</span> httr<span class="sc">::</span><span class="fu">GET</span>(<span class="st">"https://api.nhle.com/stats/rest/en/team"</span>) <span class="sc">%>%</span></span>
|
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>teams <span class="ot"><-</span> httr<span class="sc">::</span><span class="fu">GET</span>(<span class="st">"https://api.nhle.com/stats/rest/en/team"</span>) <span class="sc">%>%</span></span>
|
||||||
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> httr<span class="sc">::</span><span class="fu">content</span>() <span class="sc">%>%</span></span>
|
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> httr<span class="sc">::</span><span class="fu">content</span>() <span class="sc">%>%</span></span>
|
||||||
|
@ -364,30 +363,35 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a> tidyr<span class="sc">::</span><span class="fu">unnest_wider</span>(data)</span>
|
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a> tidyr<span class="sc">::</span><span class="fu">unnest_wider</span>(data)</span>
|
||||||
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a></span>
|
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a></span>
|
||||||
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a>get_roster <span class="ot"><-</span> <span class="cf">function</span>(team){</span>
|
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a>get_roster <span class="ot"><-</span> <span class="cf">function</span>(team){</span>
|
||||||
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a> httr<span class="sc">::</span><span class="fu">GET</span>(glue<span class="sc">::</span><span class="fu">glue</span>(<span class="st">"https://api-web.nhle.com/v1/roster/{team}/20232024"</span>)) <span class="sc">%>%</span></span>
|
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a> df <span class="ot"><-</span> httr<span class="sc">::</span><span class="fu">GET</span>(glue<span class="sc">::</span><span class="fu">glue</span>(<span class="st">"https://api-web.nhle.com/v1/roster/{team}/20232024"</span>)) <span class="sc">%>%</span></span>
|
||||||
<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a> httr<span class="sc">::</span><span class="fu">content</span>() <span class="sc">%>%</span></span>
|
<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a> httr<span class="sc">::</span><span class="fu">content</span>() <span class="sc">%>%</span></span>
|
||||||
<span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a> purrr<span class="sc">::</span><span class="fu">flatten</span>() <span class="sc">%>%</span></span>
|
<span id="cb3-10"><a href="#cb3-10" aria-hidden="true" tabindex="-1"></a> purrr<span class="sc">::</span><span class="fu">flatten</span>() <span class="sc">%>%</span></span>
|
||||||
<span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a> tibble<span class="sc">::</span><span class="fu">tibble</span>(<span class="at">data =</span> .) <span class="sc">%>%</span></span>
|
<span id="cb3-11"><a href="#cb3-11" aria-hidden="true" tabindex="-1"></a> tibble<span class="sc">::</span><span class="fu">tibble</span>(<span class="at">data =</span> .)</span>
|
||||||
<span id="cb3-12"><a href="#cb3-12" aria-hidden="true" tabindex="-1"></a> tidyr<span class="sc">::</span><span class="fu">hoist</span>(</span>
|
<span id="cb3-12"><a href="#cb3-12" aria-hidden="true" tabindex="-1"></a></span>
|
||||||
<span id="cb3-13"><a href="#cb3-13" aria-hidden="true" tabindex="-1"></a> <span class="at">.col =</span> <span class="st">"data"</span></span>
|
<span id="cb3-13"><a href="#cb3-13" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> (<span class="sc">!</span><span class="fu">nrow</span>(df) <span class="sc">==</span> <span class="dv">0</span>) {</span>
|
||||||
<span id="cb3-14"><a href="#cb3-14" aria-hidden="true" tabindex="-1"></a> , <span class="st">"firstName"</span> <span class="ot">=</span> <span class="fu">list</span>(<span class="st">"firstName"</span>, <span class="dv">1</span>L)</span>
|
<span id="cb3-14"><a href="#cb3-14" aria-hidden="true" tabindex="-1"></a> df <span class="ot"><-</span> df <span class="sc">|></span></span>
|
||||||
<span id="cb3-15"><a href="#cb3-15" aria-hidden="true" tabindex="-1"></a> , <span class="st">"lastName"</span> <span class="ot">=</span> <span class="fu">list</span>(<span class="st">"lastName"</span>, <span class="dv">1</span>L)</span>
|
<span id="cb3-15"><a href="#cb3-15" aria-hidden="true" tabindex="-1"></a> tidyr<span class="sc">::</span><span class="fu">hoist</span>(</span>
|
||||||
<span id="cb3-16"><a href="#cb3-16" aria-hidden="true" tabindex="-1"></a> , <span class="st">"positionCode"</span></span>
|
<span id="cb3-16"><a href="#cb3-16" aria-hidden="true" tabindex="-1"></a> <span class="at">.col =</span> <span class="st">"data"</span></span>
|
||||||
<span id="cb3-17"><a href="#cb3-17" aria-hidden="true" tabindex="-1"></a> , <span class="st">"birthDate"</span></span>
|
<span id="cb3-17"><a href="#cb3-17" aria-hidden="true" tabindex="-1"></a> , <span class="st">"firstName"</span> <span class="ot">=</span> <span class="fu">list</span>(<span class="st">"firstName"</span>, <span class="dv">1</span>L)</span>
|
||||||
<span id="cb3-18"><a href="#cb3-18" aria-hidden="true" tabindex="-1"></a> , <span class="st">"birthCountry"</span></span>
|
<span id="cb3-18"><a href="#cb3-18" aria-hidden="true" tabindex="-1"></a> , <span class="st">"lastName"</span> <span class="ot">=</span> <span class="fu">list</span>(<span class="st">"lastName"</span>, <span class="dv">1</span>L)</span>
|
||||||
<span id="cb3-19"><a href="#cb3-19" aria-hidden="true" tabindex="-1"></a> )</span>
|
<span id="cb3-19"><a href="#cb3-19" aria-hidden="true" tabindex="-1"></a> , <span class="st">"positionCode"</span></span>
|
||||||
<span id="cb3-20"><a href="#cb3-20" aria-hidden="true" tabindex="-1"></a>}</span>
|
<span id="cb3-20"><a href="#cb3-20" aria-hidden="true" tabindex="-1"></a> , <span class="st">"birthDate"</span></span>
|
||||||
<span id="cb3-21"><a href="#cb3-21" aria-hidden="true" tabindex="-1"></a></span>
|
<span id="cb3-21"><a href="#cb3-21" aria-hidden="true" tabindex="-1"></a> , <span class="st">"birthCountry"</span></span>
|
||||||
<span id="cb3-22"><a href="#cb3-22" aria-hidden="true" tabindex="-1"></a>usa_roster <span class="ot"><-</span> purrr<span class="sc">::</span><span class="fu">map</span>(teams<span class="sc">$</span>triCode, get_roster) <span class="sc">%>%</span></span>
|
<span id="cb3-22"><a href="#cb3-22" aria-hidden="true" tabindex="-1"></a> )</span>
|
||||||
<span id="cb3-23"><a href="#cb3-23" aria-hidden="true" tabindex="-1"></a> purrr<span class="sc">::</span><span class="fu">list_rbind</span>() <span class="sc">%>%</span></span>
|
<span id="cb3-23"><a href="#cb3-23" aria-hidden="true" tabindex="-1"></a> }</span>
|
||||||
<span id="cb3-24"><a href="#cb3-24" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">filter</span>(<span class="sc">!</span><span class="fu">is.na</span>(firstName)) <span class="sc">%>%</span></span>
|
<span id="cb3-24"><a href="#cb3-24" aria-hidden="true" tabindex="-1"></a> <span class="fu">return</span>(df)</span>
|
||||||
<span id="cb3-25"><a href="#cb3-25" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">filter</span>(birthCountry <span class="sc">==</span> <span class="st">"USA"</span>) <span class="sc">%>%</span></span>
|
<span id="cb3-25"><a href="#cb3-25" aria-hidden="true" tabindex="-1"></a>}</span>
|
||||||
<span id="cb3-26"><a href="#cb3-26" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">mutate</span>(</span>
|
<span id="cb3-26"><a href="#cb3-26" aria-hidden="true" tabindex="-1"></a></span>
|
||||||
<span id="cb3-27"><a href="#cb3-27" aria-hidden="true" tabindex="-1"></a> <span class="at">mob =</span> lubridate<span class="sc">::</span><span class="fu">month</span>(lubridate<span class="sc">::</span><span class="fu">ymd</span>(birthDate), <span class="at">label =</span> <span class="cn">TRUE</span>, <span class="at">abbr =</span> <span class="cn">FALSE</span>)</span>
|
<span id="cb3-27"><a href="#cb3-27" aria-hidden="true" tabindex="-1"></a>usa_roster <span class="ot"><-</span> purrr<span class="sc">::</span><span class="fu">map</span>(teams<span class="sc">$</span>triCode, get_roster) <span class="sc">%>%</span></span>
|
||||||
<span id="cb3-28"><a href="#cb3-28" aria-hidden="true" tabindex="-1"></a> , <span class="at">mob_id =</span> lubridate<span class="sc">::</span><span class="fu">month</span>(lubridate<span class="sc">::</span><span class="fu">ymd</span>(birthDate))</span>
|
<span id="cb3-28"><a href="#cb3-28" aria-hidden="true" tabindex="-1"></a> purrr<span class="sc">::</span><span class="fu">list_rbind</span>() <span class="sc">%>%</span></span>
|
||||||
<span id="cb3-29"><a href="#cb3-29" aria-hidden="true" tabindex="-1"></a> ) <span class="sc">%>%</span></span>
|
<span id="cb3-29"><a href="#cb3-29" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">filter</span>(<span class="sc">!</span><span class="fu">is.na</span>(firstName)) <span class="sc">%>%</span></span>
|
||||||
<span id="cb3-30"><a href="#cb3-30" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">count</span>(mob_id, mob, <span class="at">name =</span> <span class="st">"players"</span>) <span class="sc">%>%</span></span>
|
<span id="cb3-30"><a href="#cb3-30" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">filter</span>(birthCountry <span class="sc">==</span> <span class="st">"USA"</span>) <span class="sc">%>%</span></span>
|
||||||
<span id="cb3-31"><a href="#cb3-31" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">mutate</span>(<span class="at">player_pct =</span> players <span class="sc">/</span> <span class="fu">sum</span>(players))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
|
<span id="cb3-31"><a href="#cb3-31" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">mutate</span>(</span>
|
||||||
|
<span id="cb3-32"><a href="#cb3-32" aria-hidden="true" tabindex="-1"></a> <span class="at">mob =</span> lubridate<span class="sc">::</span><span class="fu">month</span>(lubridate<span class="sc">::</span><span class="fu">ymd</span>(birthDate), <span class="at">label =</span> <span class="cn">TRUE</span>, <span class="at">abbr =</span> <span class="cn">FALSE</span>)</span>
|
||||||
|
<span id="cb3-33"><a href="#cb3-33" aria-hidden="true" tabindex="-1"></a> , <span class="at">mob_id =</span> lubridate<span class="sc">::</span><span class="fu">month</span>(lubridate<span class="sc">::</span><span class="fu">ymd</span>(birthDate))</span>
|
||||||
|
<span id="cb3-34"><a href="#cb3-34" aria-hidden="true" tabindex="-1"></a> ) <span class="sc">%>%</span></span>
|
||||||
|
<span id="cb3-35"><a href="#cb3-35" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">count</span>(mob_id, mob, <span class="at">name =</span> <span class="st">"players"</span>) <span class="sc">%>%</span></span>
|
||||||
|
<span id="cb3-36"><a href="#cb3-36" aria-hidden="true" tabindex="-1"></a> dplyr<span class="sc">::</span><span class="fu">mutate</span>(<span class="at">player_pct =</span> players <span class="sc">/</span> <span class="fu">sum</span>(players))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section id="graph-it" class="level2">
|
<section id="graph-it" class="level2">
|
||||||
|
@ -456,7 +460,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
<pre><code># A tibble: 1 × 4
|
<pre><code># A tibble: 1 × 4
|
||||||
statistic p.value parameter method
|
statistic p.value parameter method
|
||||||
<dbl> <dbl> <dbl> <chr>
|
<dbl> <dbl> <dbl> <chr>
|
||||||
1 14.8 0.190 11 Chi-squared test for given probabilities</code></pre>
|
1 7.34 0.771 11 Chi-squared test for given probabilities</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>If we look at this from a more stats based perspective, running a chi square test on the amount of players in the NHL per month, based on the US expected birth rate, we do see however there is quite a high p value. This is lets us know we can not reject the Null hypothesis that these are the same thing.</p>
|
<p>If we look at this from a more stats based perspective, running a chi square test on the amount of players in the NHL per month, based on the US expected birth rate, we do see however there is quite a high p value. This is lets us know we can not reject the Null hypothesis that these are the same thing.</p>
|
||||||
|
@ -508,7 +512,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
<pre><code># A tibble: 1 × 4
|
<pre><code># A tibble: 1 × 4
|
||||||
statistic p.value parameter method
|
statistic p.value parameter method
|
||||||
<dbl> <dbl> <dbl> <chr>
|
<dbl> <dbl> <dbl> <chr>
|
||||||
1 43.1 0.0000104 11 Chi-squared test for given probabilities</code></pre>
|
1 28.8 0.00243 11 Chi-squared test for given probabilities</code></pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -561,18 +565,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const clipboard = new window.ClipboardJS('.code-copy-button', {
|
const onCopySuccess = function(e) {
|
||||||
text: function(trigger) {
|
|
||||||
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
|
||||||
for (const childEl of codeEl.children) {
|
|
||||||
if (isCodeAnnotation(childEl)) {
|
|
||||||
childEl.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return codeEl.innerText;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
// button target
|
// button target
|
||||||
const button = e.trigger;
|
const button = e.trigger;
|
||||||
// don't keep focus
|
// don't keep focus
|
||||||
|
@ -604,7 +597,29 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// clear code selection
|
// clear code selection
|
||||||
e.clearSelection();
|
e.clearSelection();
|
||||||
|
}
|
||||||
|
const getTextToCopy = function(trigger) {
|
||||||
|
const codeEl = trigger.previousElementSibling.cloneNode(true);
|
||||||
|
for (const childEl of codeEl.children) {
|
||||||
|
if (isCodeAnnotation(childEl)) {
|
||||||
|
childEl.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return codeEl.innerText;
|
||||||
|
}
|
||||||
|
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
|
||||||
|
text: getTextToCopy
|
||||||
});
|
});
|
||||||
|
clipboard.on('success', onCopySuccess);
|
||||||
|
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
|
||||||
|
// For code content inside modals, clipBoardJS needs to be initialized with a container option
|
||||||
|
// TODO: Check when it could be a function (https://github.com/zenorocha/clipboard.js/issues/860)
|
||||||
|
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
|
||||||
|
text: getTextToCopy,
|
||||||
|
container: window.document.getElementById('quarto-embedded-source-code-modal')
|
||||||
|
});
|
||||||
|
clipboardModal.on('success', onCopySuccess);
|
||||||
|
}
|
||||||
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
|
||||||
var mailtoRegex = new RegExp(/^mailto:/);
|
var mailtoRegex = new RegExp(/^mailto:/);
|
||||||
var filterRegex = new RegExp('/' + window.location.host + '/');
|
var filterRegex = new RegExp('/' + window.location.host + '/');
|
||||||
|
@ -612,7 +627,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
|
||||||
}
|
}
|
||||||
// Inspect non-navigation links and adorn them if external
|
// Inspect non-navigation links and adorn them if external
|
||||||
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
|
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
|
||||||
for (var i=0; i<links.length; i++) {
|
for (var i=0; i<links.length; i++) {
|
||||||
const link = links[i];
|
const link = links[i];
|
||||||
if (!isInternal(link.href)) {
|
if (!isInternal(link.href)) {
|
||||||
|
|
Before Width: | Height: | Size: 266 KiB After Width: | Height: | Size: 255 KiB |
Before Width: | Height: | Size: 301 KiB After Width: | Height: | Size: 299 KiB |
|
@ -7,7 +7,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
|
||||||
<meta name="author" content="Kyle Belanger">
|
<meta name="author" content="Kyle Belanger">
|
||||||
<meta name="dcterms.date" content="2024-08-09">
|
<meta name="dcterms.date" content="2024-08-27">
|
||||||
|
|
||||||
<title>Learning Julia by WebScraping Amtrak Data – Kyle Belanger</title>
|
<title>Learning Julia by WebScraping Amtrak Data – Kyle Belanger</title>
|
||||||
<style>
|
<style>
|
||||||
|
@ -104,12 +104,8 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
}</script>
|
}</script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg==" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>
|
<script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>
|
||||||
|
|
||||||
<meta name="quarto:status" content="draft">
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../../styles.css">
|
<link rel="stylesheet" href="../../styles.css">
|
||||||
</head>
|
</head>
|
||||||
|
@ -117,7 +113,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
<body class="floating nav-fixed">
|
<body class="floating nav-fixed">
|
||||||
|
|
||||||
<div id="quarto-search-results"></div>
|
<div id="quarto-search-results"></div>
|
||||||
<header id="quarto-header" class="headroom fixed-top quarto-banner"><div id="quarto-draft-alert" class="alert alert-warning"><i class="bi bi-pencil-square"></i>Draft</div>
|
<header id="quarto-header" class="headroom fixed-top quarto-banner">
|
||||||
<nav class="navbar navbar-expand-lg " data-bs-theme="dark">
|
<nav class="navbar navbar-expand-lg " data-bs-theme="dark">
|
||||||
<div class="navbar-container container-fluid">
|
<div class="navbar-container container-fluid">
|
||||||
<div class="navbar-brand-container mx-auto">
|
<div class="navbar-brand-container mx-auto">
|
||||||
|
@ -176,7 +172,7 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
<div>
|
<div>
|
||||||
<div class="quarto-title-meta-heading">Published</div>
|
<div class="quarto-title-meta-heading">Published</div>
|
||||||
<div class="quarto-title-meta-contents">
|
<div class="quarto-title-meta-contents">
|
||||||
<p class="date">August 9, 2024</p>
|
<p class="date">August 27, 2024</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -518,12 +514,12 @@ pre > code.sourceCode > span > a:first-child::before { text-decoration: underlin
|
||||||
<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-reuse"><h2 class="anchored quarto-appendix-heading">Reuse</h2><div class="quarto-appendix-contents"><div><a rel="license" href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></div></div></section><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@online{belanger2024,
|
<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-reuse"><h2 class="anchored quarto-appendix-heading">Reuse</h2><div class="quarto-appendix-contents"><div><a rel="license" href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></div></div></section><section class="quarto-appendix-contents" id="quarto-citation"><h2 class="anchored quarto-appendix-heading">Citation</h2><div><div class="quarto-appendix-secondary-label">BibTeX citation:</div><pre class="sourceCode code-with-copy quarto-appendix-bibtex"><code class="sourceCode bibtex">@online{belanger2024,
|
||||||
author = {Belanger, Kyle},
|
author = {Belanger, Kyle},
|
||||||
title = {Learning {Julia} by {WebScraping} {Amtrak} {Data}},
|
title = {Learning {Julia} by {WebScraping} {Amtrak} {Data}},
|
||||||
date = {2024-08-09},
|
date = {2024-08-27},
|
||||||
langid = {en}
|
langid = {en}
|
||||||
}
|
}
|
||||||
</code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-belanger2024" class="csl-entry quarto-appendix-citeas" role="listitem">
|
</code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre><div class="quarto-appendix-secondary-label">For attribution, please cite this work as:</div><div id="ref-belanger2024" class="csl-entry quarto-appendix-citeas" role="listitem">
|
||||||
Belanger, Kyle. 2024. <span>“Learning Julia by WebScraping Amtrak
|
Belanger, Kyle. 2024. <span>“Learning Julia by WebScraping Amtrak
|
||||||
Data.”</span> August 9, 2024.
|
Data.”</span> August 27, 2024.
|
||||||
</div></div></section></div></main> <!-- /main -->
|
</div></div></section></div></main> <!-- /main -->
|
||||||
<script id="quarto-html-after-body" type="application/javascript">
|
<script id="quarto-html-after-body" type="application/javascript">
|
||||||
window.document.addEventListener("DOMContentLoaded", function (event) {
|
window.document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
|
|
|
@ -45,6 +45,8 @@ The data from CDC Wonder pulls in quite nice, the only addition is adding a colu
|
||||||
|
|
||||||
While I wish I could sit and type out how I sat and figured out the complexity of the NHL Stats API and how to bring it into R. In reality I took a great guide, that being Jlaws post, and tweaked what I needed. Instead of Canadian players, I pulled out just the US Born players and their birth dates. I did also pull out positions to see if that will make any sort of difference. What pulls out of the NHL API has a ton of great details and I look forward to diving into what is available to see what kind of graphics can be built.
|
While I wish I could sit and type out how I sat and figured out the complexity of the NHL Stats API and how to bring it into R. In reality I took a great guide, that being Jlaws post, and tweaked what I needed. Instead of Canadian players, I pulled out just the US Born players and their birth dates. I did also pull out positions to see if that will make any sort of difference. What pulls out of the NHL API has a ton of great details and I look forward to diving into what is available to see what kind of graphics can be built.
|
||||||
|
|
||||||
|
**08/27/2024 Update** Due to the the Coyotes moving to Utah, I had to edit the code slightly to adjust for this. When gathering the active roster data the API was returning a blank response. This was causing Tidyr Hoist to fail because it could not pull the columns from the nested data frame. I added a check to see if the data frame is empty and if it is, then I return an empty data frame and skip this step.
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
#| label: Roster_Data
|
#| label: Roster_Data
|
||||||
|
|
||||||
|
|
|
@ -45,10 +45,13 @@ teams <- httr::GET("https://api.nhle.com/stats/rest/en/team") %>%
|
||||||
tidyr::unnest_wider(data)
|
tidyr::unnest_wider(data)
|
||||||
|
|
||||||
get_roster <- function(team){
|
get_roster <- function(team){
|
||||||
httr::GET(glue::glue("https://api-web.nhle.com/v1/roster/{team}/20232024")) %>%
|
df <- httr::GET(glue::glue("https://api-web.nhle.com/v1/roster/{team}/20232024")) %>%
|
||||||
httr::content() %>%
|
httr::content() %>%
|
||||||
purrr::flatten() %>%
|
purrr::flatten() %>%
|
||||||
tibble::tibble(data = .) %>%
|
tibble::tibble(data = .)
|
||||||
|
|
||||||
|
if (!nrow(df) == 0) {
|
||||||
|
df <- df |>
|
||||||
tidyr::hoist(
|
tidyr::hoist(
|
||||||
.col = "data"
|
.col = "data"
|
||||||
, "firstName" = list("firstName", 1L)
|
, "firstName" = list("firstName", 1L)
|
||||||
|
@ -57,6 +60,8 @@ get_roster <- function(team){
|
||||||
, "birthDate"
|
, "birthDate"
|
||||||
, "birthCountry"
|
, "birthCountry"
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
return(df)
|
||||||
}
|
}
|
||||||
|
|
||||||
usa_roster <- purrr::map(teams$triCode, get_roster) %>%
|
usa_roster <- purrr::map(teams$triCode, get_roster) %>%
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
---
|
---
|
||||||
title: "Learning Julia by WebScraping Amtrak Data"
|
title: "Learning Julia by WebScraping Amtrak Data"
|
||||||
# description: ""
|
# description: ""
|
||||||
date: "08/09/2024" #Update when live
|
date: "08/27/2024" #Update when live
|
||||||
draft: true
|
|
||||||
categories:
|
categories:
|
||||||
- Julia
|
- Julia
|
||||||
- dataViz
|
- dataViz
|
||||||
|
|