Skip to content

Commit

Permalink
added the toothpaste_BF2.csv file to the data page
Browse files Browse the repository at this point in the history
  • Loading branch information
dkpalmers committed Oct 11, 2024
1 parent 167655d commit 9dfc000
Show file tree
Hide file tree
Showing 22 changed files with 262 additions and 1,245 deletions.
4 changes: 4 additions & 0 deletions data_for_class.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ title: "Data Files"
[click here to download a zipped folder of data for class](data/data_for_class.zip)

then extract the files into a folder somewhere in the project directory you create for this class.

The `toothpaste_BF2.csv` file which is used often throughout the book to demonstrate code, can be downloaded here. (Note, the path used in the book's code to read in the file will be different than the path you will need to read in the file. Your path will depend on where you store the data file on your computer).

[Download toothpaste_bf2.csv](data/toothpaste_BF2.csv)
1,043 changes: 0 additions & 1,043 deletions docs/Anova_F-test.html

This file was deleted.

Binary file not shown.
Binary file not shown.
95 changes: 53 additions & 42 deletions docs/ancova.html

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions docs/data/toothpaste_BF2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
PersonID,Brush,Toothpaste,Plaque
1,Ultrasonic,NameBrand,32.74
2,Manual,NameBrand,24.21
3,Oscillating,OffBrand,22.09
4,Manual,OffBrand,21.6
5,Ultrasonic,NameBrand,21.45
6,Sonic,NameBrand,23.31
7,Oscillating,NameBrand,19.87
8,Sonic,OffBrand,23.81
9,Manual,NameBrand,19.12
10,Manual,OffBrand,23.4
11,Ultrasonic,NameBrand,24.39
12,Ultrasonic,OffBrand,23.42
13,Sonic,OffBrand,21.27
14,Oscillating,NameBrand,20
15,Oscillating,NameBrand,18.56
16,Manual,NameBrand,26.88
17,Ultrasonic,OffBrand,24.21
18,Sonic,NameBrand,25.58
19,Manual,OffBrand,23.35
20,Oscillating,OffBrand,17.62
21,Sonic,NameBrand,18.99
22,Ultrasonic,OffBrand,25.67
23,Sonic,OffBrand,23.09
24,Oscillating,OffBrand,21.72
59 changes: 36 additions & 23 deletions docs/data_for_class.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.553">
<meta name="generator" content="quarto-1.5.57">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">


<title>Math326 Notebook - Data Files</title>
<title>Data Files – Math326 Notebook</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand Down Expand Up @@ -83,13 +83,13 @@
</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(); }">
<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>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav navbar-nav-scroll me-auto">
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-basics-of-design" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-basics-of-design" role="link" data-bs-toggle="dropdown" aria-expanded="false">
<span class="menu-text">Basics of Design</span>
</a>
<ul class="dropdown-menu" aria-labelledby="nav-menu-basics-of-design">
Expand Down Expand Up @@ -120,7 +120,7 @@
</ul>
</li>
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-specific-designs" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-specific-designs" role="link" data-bs-toggle="dropdown" aria-expanded="false">
<span class="menu-text">Specific Designs</span>
</a>
<ul class="dropdown-menu" aria-labelledby="nav-menu-specific-designs">
Expand Down Expand Up @@ -167,7 +167,7 @@
</ul>
</li>
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-broad-topics" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-broad-topics" role="link" data-bs-toggle="dropdown" aria-expanded="false">
<span class="menu-text">Broad Topics</span>
</a>
<ul class="dropdown-menu" aria-labelledby="nav-menu-broad-topics">
Expand Down Expand Up @@ -206,7 +206,7 @@
</ul>
</li>
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-r-instructions" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-r-instructions" role="link" data-bs-toggle="dropdown" aria-expanded="false">
<span class="menu-text">R Instructions</span>
</a>
<ul class="dropdown-menu" aria-labelledby="nav-menu-r-instructions">
Expand All @@ -223,7 +223,7 @@
</ul>
<ul class="navbar-nav navbar-nav-scroll ms-auto">
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-datasets" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-datasets" role="link" data-bs-toggle="dropdown" aria-expanded="false">
<span class="menu-text">Datasets</span>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="nav-menu-datasets">
Expand All @@ -239,7 +239,7 @@
</li>
</ul>
</div> <!-- /navcollapse -->
<div class="quarto-navbar-tools">
<div class="quarto-navbar-tools">
</div>
</div> <!-- /container-fluid -->
</nav>
Expand All @@ -248,7 +248,7 @@
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
<!-- sidebar -->
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar zindex-bottom">

</div>
<!-- main -->
Expand All @@ -275,6 +275,8 @@ <h1 class="title">Data Files</h1>

<p><a href="data/data_for_class.zip">click here to download a zipped folder of data for class</a></p>
<p>then extract the files into a folder somewhere in the project directory you create for this class.</p>
<p>The <code>toothpaste_BF2.csv</code> file which is used often throughout the book to demonstrate code, can be downloaded here. (Note, the path used in the book’s code to read in the file will be different than the path you will need to read in the file. Your path will depend on where you store the data file on your computer).</p>
<p><a href="data/toothpaste_BF2.csv">Download toothpaste_bf2.csv</a></p>



Expand Down Expand Up @@ -314,18 +316,7 @@ <h1 class="title">Data Files</h1>
}
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) {
const onCopySuccess = function(e) {
// button target
const button = e.trigger;
// don't keep focus
Expand Down Expand Up @@ -357,15 +348,37 @@ <h1 class="title">Data Files</h1>
}, 1000);
// clear code selection
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 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)');
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++) {
const link = links[i];
if (!isInternal(link.href)) {
Expand Down
Loading

0 comments on commit 9dfc000

Please sign in to comment.