Skip to content

Commit

Permalink
Fix numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
avahoffman committed Jan 6, 2025
1 parent e4ae477 commit d68c2da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/Data_Cleaning/lab/Data_Cleaning_Lab_Key.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,19 @@ BloodType_split <- BloodType %>%

# Practice on Your Own!

### P.2
### P.3

How many observations are there for each `Rhfactor` in the data object you just made:

```{r P.2response}
```{r P.3response}
count(BloodType_split, Rhfactor)
```

### P.3
### P.4

Filtering for patients with type O, how many had the infection?

```{r P.3response}
```{r P.4response}
BloodType_split %>%
filter(blood_type == "O") %>%
count(infection)
Expand Down

0 comments on commit d68c2da

Please sign in to comment.