0

I need to loop some commands over a list. Let's say:

ID <- c("SRR85", "SRR72")

ID <- file %>%
  filter(type == "CDS" & genome == "ID") %>%
  select(genome, product)

I mean, for every ID I need a dataframe filtered and select. Can anybody help me please?

Thank you all in advance.

  • 1
    please show the minimum reproducible example. using `dput(df)` – Yuriy Saraykin Feb 11 '21 at 14:58
  • Welcome to StackOverflow! If you want to improve your question, here is some information on [how to ask a good question](https://stackoverflow.com/help/how-to-ask) and how to give a [minimale reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example/5963610#5963610). The MRE will make it easier for others to find and test a answer to your question. That way you can help others to help you! – dario Feb 11 '21 at 15:50

0 Answers0