I have a data frame that looks like this:
I want to count how many different targets each microRNA gets assigned to it. So far I have tried this on R but its not working and I can't tell why
DT %>%
group_by(miRNA) %>%
length(unique((Target)))
I would like to get a result like this:
I can achieve this using other functions such aggregate and i have, i just don't understand what's wrong with my syntax's in this specific example. Any help will be very much appreciated !