I would like to get a count of the unique string identities in the variable "Order_y", grouped by the variable "Virus". This is the code I've been trying and it doesn't seem to be working.
Flavivirus_chordates%>%
group_by(Virus) %>%
distinct (Virus,Order_y) %>%
select(Order_y)%>%
summarize(unique("Order_y"))