Skip to content

Commit

Permalink
Update wrangling_practical.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhetani authored Aug 16, 2023
1 parent a5ea634 commit dab2190
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IntroR_practical_online_resource/wrangling_practical.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

2. We have obtained batch information for the control samples in this dataset. **Copy and paste the code below to create a dataframe of control samples with the associated batch information**:

```
ctrl_samples <- data.frame(row.names = c("sample3", "sample10", "sample8", "sample4", "sample15"), date = c("01/13/2018", "03/15/2018", "01/13/2018", "09/20/2018","03/15/2018"))
```
```
ctrl_samples <- data.frame(row.names = c("sample3", "sample10", "sample8", "sample4", "sample15"), date = c("01/13/2018", "03/15/2018", "01/13/2018", "09/20/2018","03/15/2018"))
```

3. How many of the `ctrl_samples` are also in the `proj_summary` dataframe? Use the %in% operator to compare sample names.
4. Keep only the rows in `proj_summary` which correspond to those in `ctrl_samples`. Do this with the %in% operator. Save it to a variable called `proj_summary_ctrl`.
Expand Down

0 comments on commit dab2190

Please sign in to comment.