Skip to content

Commit

Permalink
markdown source builds
Browse files Browse the repository at this point in the history
Auto-generated via `{sandpaper}`
Source  : 4afb5eb
Branch  : main
Author  : peterlaurin <[email protected]>
Time    : 2024-12-31 21:58:11 +0000
Message : Merge pull request #95 from carpentries-incubator/accept-xor-changes-ep4

Full draft of ep 4 (and rough draft of ep 5)
  • Loading branch information
actions-user committed Dec 31, 2024
1 parent 63cbfd1 commit 7dd2930
Show file tree
Hide file tree
Showing 9 changed files with 1,180 additions and 1,456 deletions.
2 changes: 1 addition & 1 deletion 1-intro-reproducible-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exercises: 10
::::::::::::::::::::::::::::::::::::::::::::::::

#### Welcome and introductions
- Welcome to "RRRR, I'm Stuck!" We're glad you're here! Let's first take care of a few setup steps. You should have all followed the setup instructions on the [workshop website](kaijagahm.github.io/R-help-reprexes/), and you should have both R and RStudio installed.
- Welcome to "RRRR, I'm Stuck!" We're glad you're here! Let's first take care of a few setup steps. You should have all followed the setup instructions on the [workshop website](https://carpentries-incubator.github.io/R-help-reprexes/), and you should have both R and RStudio installed.

- You should also have the following packages installed: {**reprex**}, {**ratdat**}, {**dplyr**}, and {**ggplot2**}.

Expand Down
58 changes: 29 additions & 29 deletions 3-minimal-reproducible-data.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Minimal Reproducible Data"
teaching: 90
excercises: 6
exercises: 6
---


Expand Down Expand Up @@ -236,7 +236,7 @@ x
```

``` output
[1] 10 1 5 9 2 7 8 4 6 3
[1] 3 10 7 5 8 4 6 2 1 9
```

Or you can randomly sample from a normal distribution
Expand All @@ -248,8 +248,8 @@ x
```

``` output
[1] -0.98657300 1.10974854 0.93699581 1.24690724 -1.87082909 1.48664080
[7] -0.01691745 -0.02549324 0.05642538 -0.95861351
[1] 0.1907835 1.9588443 -0.7589721 -0.2485772 -0.2695074 1.1330484
[7] -0.4387425 -1.0220218 -0.6056941 -1.1155357
```

You can also use `letters` to create factors.
Expand All @@ -261,7 +261,7 @@ x
```

``` output
[1] "c" "c" "d" "c" "c" "c" "c" "c" "d" "c" "b" "d" "a" "d" "b" "a" "c" "c" "b"
[1] "c" "d" "d" "c" "a" "c" "d" "c" "d" "c" "c" "d" "d" "c" "d" "d" "d" "d" "d"
[20] "d"
```

Expand All @@ -276,12 +276,12 @@ head(data)

``` output
x y
1 b -0.2619031
2 a -0.5924968
3 a 1.0555866
4 b -1.2199813
5 b -1.0856028
6 c -0.7476225
1 b 1.1803639
2 a -0.7964599
3 b -0.3271743
4 b -1.4217263
5 b 0.4900045
6 b -1.7610704
```

**However**, when sampling at random you must remember to `set.seed()` before sending it to someone to make sure you both get the same numbers!
Expand Down Expand Up @@ -388,26 +388,26 @@ sample_data

``` output
Day Plot Species
1 1 P1 C
2 2 P2 D
1 1 P1 A
2 2 P1 D
3 3 P1 A
4 4 P1 C
5 5 P1 D
6 6 P2 B
7 7 P1 A
8 8 P2 D
9 9 P1 C
10 10 P2 A
11 1 P1 C
12 2 P2 A
13 3 P1 D
14 4 P2 A
15 5 P2 B
16 6 P1 A
4 4 P2 A
5 5 P2 A
6 6 P1 B
7 7 P1 B
8 8 P2 A
9 9 P1 D
10 10 P2 D
11 1 P2 A
12 2 P1 A
13 3 P1 A
14 4 P1 B
15 5 P2 C
16 6 P2 D
17 7 P2 D
18 8 P2 C
19 9 P1 B
20 10 P1 C
18 8 P2 B
19 9 P2 D
20 10 P2 A
```

Great!
Expand Down
Loading

0 comments on commit 7dd2930

Please sign in to comment.