Skip to content

Commit

Permalink
updated l3
Browse files Browse the repository at this point in the history
  • Loading branch information
january3 committed Sep 18, 2024
1 parent f3af60c commit 9185989
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
14 changes: 11 additions & 3 deletions Lectures/lecture_03.html
Original file line number Diff line number Diff line change
Expand Up @@ -3497,6 +3497,14 @@ <h1 data-config-title><!-- populated from slide_config.json --></h1>

<p>(we use the back ticks because the column name contains a space)</p>

</article></slide><slide class=""><hgroup><h2>table() for constructing contingency tables</h2></hgroup><article id="table-for-constructing-contingency-tables" class="smaller ">

<pre class = 'prettyprint lang-r'>table(myiris$Species)</pre>

<pre >##
## setosa Setosa versicolor Versicolor virginica Virginica
## 45 5 42 8 46 4</pre>

</article></slide><slide class=""><hgroup><h2>Diagnosing problems</h2></hgroup><article id="diagnosing-problems-4" class="smaller ">

<ul>
Expand Down Expand Up @@ -3810,9 +3818,9 @@ <h1 data-config-title><!-- populated from slide_config.json --></h1>
</article></slide><slide class=""><hgroup><h2>Wide and Long format (demonstration)</h2></hgroup><article id="wide-and-long-format-demonstration" class="smaller ">

<ul>
<li><a href='https://youtu.be/NO1gaeJ7wtA' title=''>https://youtu.be/NO1gaeJ7wtA</a></li>
<li><a href='https://youtu.be/v5Y_yrnkWIU' title=''>https://youtu.be/v5Y_yrnkWIU</a></li>
<li><a href='https://youtu.be/jN0CI62WKs8' title=''>https://youtu.be/jN0CI62WKs8</a></li>
<li><a href='https://youtu.be/NO1gaeJ7wtA' title=''>https://youtu.be/NO1gaeJ7wtA</a> (introduction, 9 minutes)</li>
<li><a href='https://youtu.be/v5Y_yrnkWIU' title=''>https://youtu.be/v5Y_yrnkWIU</a> (wide to long, 6 minutes)</li>
<li><a href='https://youtu.be/jN0CI62WKs8' title=''>https://youtu.be/jN0CI62WKs8</a> (long to wide, 4 minutes)</li>
</ul>

</article></slide><slide class=""><hgroup><h2>Wide and Long format</h2></hgroup><article id="wide-and-long-format" class="smaller ">
Expand Down
14 changes: 10 additions & 4 deletions Lectures/lecture_03.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,18 @@ summary(myiris$`Sepal Length`)

(we use the back ticks because the column name contains a space)

## table() for constructing contingency tables


```{r eval=TRUE,results="markdown"}
table(myiris$Species)
```

## Diagnosing problems

* The colorDF package provides a function called `summary_colorDF` which
can be used to diagnose problems with different flavors of data frames:


```{r eval=TRUE,results="markdown",R.options=list(width=100)}
library(colorDF)
summary_colorDF(myiris)
Expand Down Expand Up @@ -517,9 +523,9 @@ removes existing row names on data frames.

## Wide and Long format (demonstration)

* https://youtu.be/NO1gaeJ7wtA
* https://youtu.be/v5Y_yrnkWIU
* https://youtu.be/jN0CI62WKs8
* https://youtu.be/NO1gaeJ7wtA (introduction, 9 minutes)
* https://youtu.be/v5Y_yrnkWIU (wide to long, 6 minutes)
* https://youtu.be/jN0CI62WKs8 (long to wide, 4 minutes)


## Wide and Long format
Expand Down

0 comments on commit 9185989

Please sign in to comment.