Skip to content
Snippets Groups Projects
Commit 35829568 authored by hpolvech's avatar hpolvech
Browse files

slice_min()

parent 70d62d7c
No related branches found
No related tags found
1 merge request!6Switch to main as default branch
......@@ -602,7 +602,15 @@ Install and load the `ggrepl` package.
install.packages("ggrepel")
library(ggrepel)
```
</p>
</details>
Let s **filter** our table into a new variable, top10, to keep only the top 10 according to the adjusted pvalue.
**Tips :** You can use the [function](https://dplyr.tidyverse.org/reference/slice.html) `slice_min()`
top10 <- tab.sig %>%
filter(sig == TRUE) %>%
slice_min(n = 10, padj)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment