Skip to content

Commit

Permalink
updated workshop material
Browse files Browse the repository at this point in the history
  • Loading branch information
FranziMe committed Dec 8, 2021
1 parent 3aabdae commit a89a8ae
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 727 deletions.
5 changes: 3 additions & 2 deletions R_workshop.2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title: "R Workshop -- Day 2"
author: "Franziska Metge"
output:
pdf_document: default
html_document: default
pdf_document: default
---


```{r "setup", include=FALSE}
require("knitr")
opts_knit$set(root.dir = "~/bit_R_workshop/")
opts_knit$set(root.dir = "~/bit_R_workshop")
```


Expand Down Expand Up @@ -571,6 +571,7 @@ pheatmap(data_subset)


```{r, eval = TRUE, echo = FALSE}
library(pheatmap)
pheatmap(as.matrix(airway.D[1:300, -1]), scale = 'row')
```

Expand Down
1 change: 0 additions & 1 deletion R_workshop.2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion R_workshop.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: "R Workshop -- Introduction to R"
output:
pdf_document: default
html_document: default
pdf_document: default
fontsize: 8pt
---

Expand Down
4 changes: 2 additions & 2 deletions R_workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -749,11 +749,11 @@ <h3>Repeat</h3>
<h3>Random numbers</h3>
<pre class="r"><code># random numbers from a normal distribution
rnorm(n = 5, mean = 5, sd = 1)
## [1] 3.167047 4.887193 4.198460 6.396455 5.599182
## [1] 4.033038 6.873742 5.722433 4.201389 3.973988

# random numbers from a uniform distribution
runif(n = 5, min = 1, max = 5)
## [1] 3.728042 2.285100 1.705257 1.207352 2.309108</code></pre>
## [1] 2.510205 3.595308 4.570523 2.297213 4.691339</code></pre>
<p>Other distributions in R include:</p>
<ul>
<li>Normal: <code>rnorm(n, mean, sd)</code></li>
Expand Down
Loading

0 comments on commit a89a8ae

Please sign in to comment.