Skip to content

Commit

Permalink
Merge pull request #48 from vianneydenis/monkey
Browse files Browse the repository at this point in the history
Final
  • Loading branch information
vianneydenis authored Nov 17, 2023
2 parents a995014 + 22e6e87 commit d8086ba
Show file tree
Hide file tree
Showing 20 changed files with 66 additions and 27 deletions.
Binary file modified df4810487c8a45838b57b12f305a2529def7225f/Data/world_test.dbf
Binary file not shown.
Binary file modified df4810487c8a45838b57b12f305a2529def7225f/Figures/iris_plot.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions df4810487c8a45838b57b12f305a2529def7225f/_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ navbar:
href: statistics.html
- text: "Linear models"
href: linear.html
# - text: "Statistics II"
# href: multi.html
- text: "Statistics II"
href: multi.html
- text: "Dataset"
href: dataset.html

Expand Down
28 changes: 28 additions & 0 deletions df4810487c8a45838b57b12f305a2529def7225f/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -2485,6 +2485,34 @@ <h3>${suggestion.title}</h3>
<div class="nav-right">
<a href="index.html">Home</a>
<a href="environment.html">Environment</a>
<div class="nav-dropdown">
<button class="nav-dropbtn">
Manipulation

<span class="down-arrow">&#x25BE;</span>
</button>
<div class="nav-dropdown-content">
<a href="manipulation.html">Basics</a>
<a href="dplyr.html">dplyr</a>
<a href="tidyr.html">tidyr</a>
</div>
</div>
<a href="types.html">Types &amp; Structures</a>
<a href="graphics.html">Graphics</a>
<a href="mapping.html">Mapping</a>
<a href="loop.html">Loops &amp; Functions</a>
<div class="nav-dropdown">
<button class="nav-dropbtn">
Statistics I

<span class="down-arrow">&#x25BE;</span>
</button>
<div class="nav-dropdown-content">
<a href="statistics.html">Descriptive &amp; hypotheses</a>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down
1 change: 1 addition & 0 deletions df4810487c8a45838b57b12f305a2529def7225f/dplyr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down
3 changes: 2 additions & 1 deletion df4810487c8a45838b57b12f305a2529def7225f/environment.html
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down Expand Up @@ -2661,7 +2662,7 @@ <h2 id="help">Help</h2>
</div>
<pre><code>function (x, na.rm = FALSE, ...)
UseMethod(&quot;median&quot;)
&lt;bytecode: 0x000001d3f7d1b6d8&gt;
&lt;bytecode: 0x0000027f2f9d97b8&gt;
&lt;environment: namespace:stats&gt;</code></pre>
</div>
<ul>
Expand Down
1 change: 1 addition & 0 deletions df4810487c8a45838b57b12f305a2529def7225f/graphics.html
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down
5 changes: 3 additions & 2 deletions df4810487c8a45838b57b12f305a2529def7225f/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2523,6 +2523,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down Expand Up @@ -2568,8 +2569,8 @@ <h1 id="information">Information</h1>
</style>
<div class="layout-chunk" data-layout="l-body">
<div class="figure" style="text-align: center"><span style="display:block;" id="fig:unnamed-chunk-1"></span>
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-ae38350469477b868f37" style="width:624px;height:384px;"></div>
<script type="application/json" data-for="htmlwidget-ae38350469477b868f37">{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addProviderTiles","args":["Stamen.Toner",null,null,{"errorTileUrl":"","noWrap":false,"detectRetina":false}]},{"method":"addMarkers","args":[25.021295,121.537338,null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},"Institute of Oceanography",null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"limits":{"lat":[25.021295,25.021295],"lng":[121.537338,121.537338]}},"evals":[],"jsHooks":[]}</script>
<div class="leaflet html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-e1e20f90f79002aa91bc" style="width:624px;height:384px;"></div>
<script type="application/json" data-for="htmlwidget-e1e20f90f79002aa91bc">{"x":{"options":{"crs":{"crsClass":"L.CRS.EPSG3857","code":null,"proj4def":null,"projectedBounds":null,"options":{}}},"calls":[{"method":"addProviderTiles","args":["Stamen.Toner",null,null,{"errorTileUrl":"","noWrap":false,"detectRetina":false}]},{"method":"addMarkers","args":[25.021295,121.537338,null,null,null,{"interactive":true,"draggable":false,"keyboard":true,"title":"","alt":"","zIndexOffset":0,"opacity":1,"riseOnHover":false,"riseOffset":250},"Institute of Oceanography",null,null,null,null,{"interactive":false,"permanent":false,"direction":"auto","opacity":1,"offset":[0,0],"textsize":"10px","textOnly":false,"className":"","sticky":true},null]}],"limits":{"lat":[25.021295,25.021295],"lng":[121.537338,121.537338]}},"evals":[],"jsHooks":[]}</script>
<p class="caption">
Figure 1: Interactive map of IONTU’s location
</p>
Expand Down
3 changes: 2 additions & 1 deletion df4810487c8a45838b57b12f305a2529def7225f/linear.html
Original file line number Diff line number Diff line change
Expand Up @@ -2516,6 +2516,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down Expand Up @@ -3018,7 +3019,7 @@ <h3 id="non-independence-of-errors">Non-independence of Errors</h3>
<span><span class='fu'><a href='https://rdrr.io/pkg/car/man/durbinWatsonTest.html'>durbinWatsonTest</a></span><span class='op'>(</span><span class='va'>fit1</span><span class='op'>)</span></span></code></pre>
</div>
<pre><code> lag Autocorrelation D-W Statistic p-value
1 0.2129038 1.573009 0.002
1 0.2129038 1.573009 0.008
Alternative hypothesis: rho != 0</code></pre>
</div>
<h3 id="additional-diagnostic-help">Additional Diagnostic Help</h3>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions df4810487c8a45838b57b12f305a2529def7225f/loop.html
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions df4810487c8a45838b57b12f305a2529def7225f/manipulation.html
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down Expand Up @@ -2743,13 +2744,13 @@ <h2 id="sample">Sample</h2>
<pre class="sourceCode r"><code class="sourceCode r"><span><span class='va'>sf</span><span class='op'>&lt;-</span><span class='fu'><a href='https://rdrr.io/r/base/sample.html'>sample</a></span><span class='op'>(</span><span class='fl'>1</span><span class='op'>:</span><span class='fu'><a href='https://rdrr.io/r/base/nrow.html'>nrow</a></span><span class='op'>(</span><span class='va'>females</span><span class='op'>)</span>, <span class='fl'>2</span><span class='op'>)</span> <span class='co'># filter with two randomly selected female students</span></span>
<span><span class='va'>sf</span> <span class='co'># the selection</span></span></code></pre>
</div>
<pre><code>[1] 4 3</code></pre>
<pre><code>[1] 1 5</code></pre>
<div class="sourceCode">
<pre class="sourceCode r"><code class="sourceCode r"><span><span class='va'>females</span><span class='op'>[</span><span class='va'>sf</span>,<span class='op'>]</span> <span class='co'># apply the filter on our original data set</span></span></code></pre>
</div>
<pre><code> height shoesize gender population
Joyce 162 37 female taiwan
Michelle 166 38 female taiwan</code></pre>
Vanessa 167 38 female taiwan
Victoria 158 36 female taiwan</code></pre>
</div>
<h1 id="sorting">Sorting</h1>
<p>Sorting a data frame is done by combining function <code>order</code> with a subscript. Exactly as we did earlier while subsetting, we first need to create a vector that will tell into which order the rows of the table need to be arranged. Let’s <code>order</code> the <code>students</code> by increasing <code>height</code>:</p>
Expand Down
5 changes: 3 additions & 2 deletions df4810487c8a45838b57b12f305a2529def7225f/mapping.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions df4810487c8a45838b57b12f305a2529def7225f/statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -2516,6 +2516,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down
1 change: 1 addition & 0 deletions df4810487c8a45838b57b12f305a2529def7225f/tidyr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down
33 changes: 17 additions & 16 deletions df4810487c8a45838b57b12f305a2529def7225f/types.html
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,7 @@ <h3>${suggestion.title}</h3>
<a href="linear.html">Linear models</a>
</div>
</div>
<a href="multi.html">Statistics II</a>
<a href="dataset.html">Dataset</a>
<a href="javascript:void(0);" class="nav-toggle">&#9776;</a>
</div>
Expand Down Expand Up @@ -2818,10 +2819,10 @@ <h2 id="matrices-and-arrays">Matrices and arrays</h2>
<pre class="sourceCode r"><code class="sourceCode r"><span><span class='va'>m</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/matrix.html'>matrix</a></span><span class='op'>(</span><span class='fu'><a href='https://rdrr.io/r/stats/Uniform.html'>runif</a></span><span class='op'>(</span><span class='fl'>9</span>,<span class='fl'>0</span>,<span class='fl'>10</span><span class='op'>)</span>, nrow <span class='op'>=</span> <span class='fl'>3</span>, ncol <span class='op'>=</span> <span class='fl'>3</span><span class='op'>)</span></span>
<span><span class='va'>m</span></span></code></pre>
</div>
<pre><code> [,1] [,2] [,3]
[1,] 2.672542 6.094344 7.554080
[2,] 8.148270 4.511704 8.222326
[3,] 3.895233 2.028247 2.976618</code></pre>
<pre><code> [,1] [,2] [,3]
[1,] 5.1563358 9.506754 3.792998
[2,] 0.6786573 6.967237 1.595251
[3,] 3.0603389 9.510881 4.059677</code></pre>
</div>
<p>If a higher dimension vector is desired, then use the <code>array</code> function to generate the n-dimensional object. A 3x3x3 array can be created as follows:</p>
<div class="layout-chunk" data-layout="l-body">
Expand All @@ -2831,24 +2832,24 @@ <h2 id="matrices-and-arrays">Matrices and arrays</h2>
</div>
<pre><code>, , 1

[,1] [,2] [,3]
[1,] 3.424865 0.3355495 4.825813
[2,] 7.060282 2.3208305 9.165461
[3,] 2.033912 8.9108654 2.324520
[,1] [,2] [,3]
[1,] 2.2325791 2.722012 0.4595871
[2,] 0.4324752 4.614391 1.8981256
[3,] 9.7564301 6.281693 8.7203282

, , 2

[,1] [,2] [,3]
[1,] 8.534172 7.258234 6.519202
[2,] 9.767394 5.432910 4.460781
[3,] 5.204815 8.172068 3.842902
[,1] [,2] [,3]
[1,] 5.620723 9.21224627 9.5811813
[2,] 9.365296 0.05889285 1.6536006
[3,] 6.557695 4.09703051 0.4542475

, , 3

[,1] [,2] [,3]
[1,] 7.002163 5.562517 8.438016
[2,] 1.463280 1.549000 7.667695
[3,] 7.604161 2.857278 7.432194</code></pre>
[1,] 1.664945 9.896074 9.656418
[2,] 1.356034 1.333846 8.516917
[3,] 7.357637 1.380106 7.386193</code></pre>
</div>
<p>Matrices and arrays can store numeric or character data types, but they cannot store both. They derived directly form vector structure but have a higher number of dimensions.</p>
<h2 id="data-frames">Data frames</h2>
Expand Down Expand Up @@ -2984,7 +2985,7 @@ <h2 id="lists">Lists</h2>
[[3]]
function (expr, name)
.External(C_doD, expr, name)
&lt;bytecode: 0x000001e8c0be9518&gt;
&lt;bytecode: 0x000001a317dbf7b0&gt;
&lt;environment: namespace:stats&gt;</code></pre>
</div>
<p>When lists do not have component names, the <code>names</code> function will return NULL.</p>
Expand Down

0 comments on commit d8086ba

Please sign in to comment.