Skip to content

Get unique info for gene based on value in second column #1425

Answered by laurahspencer
sr320 asked this question in Q&A
Discussion options

You must be logged in to vote

Tidyverse option, assuming your table is saved to object df:

df %>% group_by(LOC) %>% slice(which.min(up_evalue))

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sr320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants