Skip to content

Commit

Permalink
show rna_with_missing_values creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lgatto authored Sep 26, 2023
1 parent c2f1d37 commit b737ca3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions episodes/30-dplyr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -609,16 +609,13 @@ Let's imagine that for some reason, we had some missing expression values for so
genes in certain samples. In the following fictive example, the gene Cyp2d22 has only
one expression value, in GSM2545338 sample.

```{r, purl=TRUE, echo=FALSE}
```{r, purl=TRUE}
rna_with_missing_values <- rna %>%
select(gene, sample, expression) %>%
filter(gene %in% c("Asl", "Apod", "Cyp2d22")) %>%
filter(sample %in% c("GSM2545336", "GSM2545337", "GSM2545338")) %>%
arrange(sample) %>%
filter(!(gene == "Cyp2d22" & sample != "GSM2545338"))
```

```{r, purl=TRUE}
rna_with_missing_values
```

Expand Down

0 comments on commit b737ca3

Please sign in to comment.