Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lanedrew committed Jun 18, 2024
1 parent a238b13 commit 90c5e60
Show file tree
Hide file tree
Showing 30 changed files with 12,463 additions and 27 deletions.
430 changes: 430 additions & 0 deletions docs/associated-csu-course 5.html

Large diffs are not rendered by default.

478 changes: 478 additions & 0 deletions docs/computer-basics 3.html

Large diffs are not rendered by default.

604 changes: 604 additions & 0 deletions docs/course-topics-syllabus 5.html

Large diffs are not rendered by default.

1,534 changes: 1,534 additions & 0 deletions docs/data-structures 2.html

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions docs/data-structures.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,12 @@ <h2><span class="header-section-number">4.3</span> Data Structures<a href="data-
be useful to store data in a list?
</p>
</div>
<p>Often, you will need to work with many related data, for example:
* A sequence of measurements through time
* A grid of values
* A set of phone numbers</p>
<p>Often, you will need to work with many related data, for example:</p>
<ul>
<li>A sequence of measurements through time</li>
<li>A grid of values</li>
<li>A set of phone numbers</li>
</ul>
<p>In these circumstances, it would make sense to organize the data into a <em>data structure</em>.
R provides multiple data structures, each of which are appropriate in various situations.
By far the most popular data structure in R is the <em>data frame</em>, but in order to talk about data frames, we must talk about some simpler data structures first.</p>
Expand Down Expand Up @@ -796,11 +798,13 @@ <h4><span class="header-section-number">4.3.1.7</span> Type Conversion<a href="d
<div class="sourceCode" id="cb192"><pre class="sourceCode r chunk-style"><code class="sourceCode r"><span id="cb192-1"><a href="data-structures.html#cb192-1" tabindex="-1"></a><span class="st">&quot;1&quot;</span> <span class="sc">+</span> <span class="st">&quot;2&quot;</span> <span class="co"># R can&#39;t add two character strings</span></span></code></pre></div>
<pre class="sourceCode r error-style"><code>Error in "1" + "2": non-numeric argument to binary operator
</code></pre>
<p>To remedy issues like this, R provides functions in order to convert from one data type into another:
- as.character: converts to character
- as.numeric: converts to numeric
- as.logical: converts to logical
- as.factor: converts to factor</p>
<p>To remedy issues like this, R provides functions in order to convert from one data type into another:</p>
<ul>
<li>as.character: converts to character</li>
<li>as.numeric: converts to numeric</li>
<li>as.logical: converts to logical</li>
<li>as.factor: converts to factor</li>
</ul>
<p>Using these functions, R will “do its best” to convert whatever you start with into the desired data type, but it’s not always possible to make the conversion.
Below are a few examples which do and don’t work well.</p>
<p>Converting from a numeric to a character vector is always possible:</p>
Expand Down
764 changes: 764 additions & 0 deletions docs/data-types 3.html

Large diffs are not rendered by default.

464 changes: 464 additions & 0 deletions docs/getoutoftheclass 5.html

Large diffs are not rendered by default.

468 changes: 468 additions & 0 deletions docs/index 4.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ <h1>
<h1 class="title">R Module 1</h1>
<p class="author"><em>Alex Fout<a href="#fn1" class="footnote-ref" id="fnref1"><sup>1</sup></a></em></p>
<p class="author"><em>Lane Drew<a href="#fn2" class="footnote-ref" id="fnref2"><sup>2</sup></a></em></p>
<p class="date"><em>18 Jun, 2024, 10:19 AM</em></p>
<p class="date"><em>18 Jun, 2024, 10:27 AM</em></p>
</div>
<div id="welcome" class="section level1 hasAnchor" number="1">
<h1><span class="header-section-number">Chapter 1</span> Welcome!<a href="index.html#welcome" class="anchor-section" aria-label="Anchor link to header"></a></h1>
Expand Down
537 changes: 537 additions & 0 deletions docs/install-r-r-studio 4.html

Large diffs are not rendered by default.

430 changes: 430 additions & 0 deletions docs/installing-r 5.html

Large diffs are not rendered by default.

430 changes: 430 additions & 0 deletions docs/prelim 4.html

Large diffs are not rendered by default.

677 changes: 677 additions & 0 deletions docs/programming-preliminaries 4.html

Large diffs are not rendered by default.

538 changes: 538 additions & 0 deletions docs/quick-example 2.html

Large diffs are not rendered by default.

613 changes: 613 additions & 0 deletions docs/r-objects 2.html

Large diffs are not rendered by default.

430 changes: 430 additions & 0 deletions docs/r-programming-fundamentals 4.html

Large diffs are not rendered by default.

586 changes: 586 additions & 0 deletions docs/running-code-in-rstudio 4.html

Large diffs are not rendered by default.

487 changes: 487 additions & 0 deletions docs/running-your-first-r-code 4.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search_index.json

Large diffs are not rendered by default.

445 changes: 445 additions & 0 deletions docs/successfull-installation 3.html

Large diffs are not rendered by default.

461 changes: 461 additions & 0 deletions docs/the-r-community 4.html

Large diffs are not rendered by default.

505 changes: 505 additions & 0 deletions docs/this-textbook 4.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/visualization.html
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ <h3><span class="header-section-number">5.6.8</span> Plotting Wrap Up<a href="vi
<span id="cb451-5"><a href="visualization.html#cb451-5" tabindex="-1"></a> <span class="fu">theme_bw</span>() <span class="sc">+</span> </span>
<span id="cb451-6"><a href="visualization.html#cb451-6" tabindex="-1"></a> <span class="fu">labs</span>(<span class="at">title =</span> <span class="st">&quot;Athlete Height vs. Weight&quot;</span>) <span class="sc">+</span> </span>
<span id="cb451-7"><a href="visualization.html#cb451-7" tabindex="-1"></a> <span class="fu">facet_grid</span>(Sex<span class="sc">~</span>Sport)</span></code></pre></div>
<pre><code>Warning: Removed 199 rows containing missing values or values outside the scale range
(`geom_point()`).</code></pre>
<pre><code>Warning: Removed 199 rows containing missing values or values outside the
scale range (`geom_point()`).</code></pre>
<p><img src="Module1_files/figure-html/unnamed-chunk-467-1.png" width="960" style="display: block; margin: auto;" /></p>
<div class="feedback">
<p>
Expand Down
535 changes: 535 additions & 0 deletions docs/what-is-r 5.html

Large diffs are not rendered by default.

433 changes: 433 additions & 0 deletions docs/working-with-data 2.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/working-with-popular-packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ <h3><span class="header-section-number">6.4.5</span> Organizing Your Data With <
<span id="cb593-4"><a href="working-with-popular-packages.html#cb593-4" tabindex="-1"></a> <span class="fu">summarize</span>(<span class="at">n =</span> <span class="fu">n</span>(), <span class="co"># Compute number of cars in each group</span></span>
<span id="cb593-5"><a href="working-with-popular-packages.html#cb593-5" tabindex="-1"></a> <span class="at">ave_mpg =</span> <span class="fu">mean</span>(mpg), <span class="co"># Compute average mpg</span></span>
<span id="cb593-6"><a href="working-with-popular-packages.html#cb593-6" tabindex="-1"></a> <span class="at">sd_mpg =</span> <span class="fu">sd</span>(mpg)) <span class="co"># Compute standard deviation of mpg</span></span></code></pre></div>
<pre><code>`summarise()` has grouped output by &#39;cyl&#39;. You can override using the `.groups`
argument.</code></pre>
<pre><code>`summarise()` has grouped output by &#39;cyl&#39;. You can override using
the `.groups` argument.</code></pre>
<div data-pagedtable="false">
<script data-pagedtable-source type="application/json">
{"columns":[{"label":["cyl"],"name":[1],"type":["dbl"],"align":["right"]},{"label":["gear"],"name":[2],"type":["dbl"],"align":["right"]},{"label":["n"],"name":[3],"type":["int"],"align":["right"]},{"label":["ave_mpg"],"name":[4],"type":["dbl"],"align":["right"]},{"label":["sd_mpg"],"name":[5],"type":["dbl"],"align":["right"]}],"data":[{"1":"4","2":"3","3":"1","4":"21.50","5":"NA"},{"1":"4","2":"4","3":"5","4":"24.76","5":"4.4009090"},{"1":"4","2":"5","3":"1","4":"26.00","5":"NA"},{"1":"6","2":"3","3":"2","4":"19.75","5":"2.3334524"},{"1":"6","2":"4","3":"4","4":"19.75","5":"1.5524175"},{"1":"6","2":"5","3":"1","4":"19.70","5":"NA"},{"1":"8","2":"3","3":"12","4":"15.05","5":"2.7743959"},{"1":"8","2":"5","3":"2","4":"15.40","5":"0.5656854"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
Expand Down
Loading

0 comments on commit 90c5e60

Please sign in to comment.