我需要对R中的数据进行子集,以仅包括以下隔离:隔离10、隔离11和隔离12。
发布于 2020-11-14 02:25:55
dplyr::filter(your_data_frame, Isolate %in% paste("Isolate", 10:12))
除了使用paste,您还可以使用c()列出矢量中的名称,但这样您只需键入"Isolate“一次。
c()
https://stackoverflow.com/questions/64826118
相似问题