R语言怎么写循环,对多个元素进行重复操作?
AlQWT_vs_AlQC14_id = data.frame(AlQWT_vs_AlQC14$Mapped.ID)
AlWT_vs_AlC14_id = data.frame(AlWT_vs_AlC14$Mapped.ID)
OAlWT_vs_OAlC14_id= data.frame(OAlWT_vs_OAlC14$Mapped.ID)
OQWT_vs_OQC14_id= data.frame(OQWT_vs_OQC14$Mapped.ID)
PQWT_vs_PQC13_id= data.frame(PQWT_vs_PQC13$Mapped.ID)
PQWT_vs_PQC14_id= data.frame(PQWT_vs_PQC14$Mapped.ID)
PWT_vs_PC13_id= data.frame(PWT_vs_PC13$Mapped.ID)
PWT_vs_PC14_id= data.frame(PWT_vs_PC14$Mapped.ID)
例如上述命令行,怎么用“XXX”来代替需要重复运行的元素,循环运行
XXX_id = data.frame(XXX$Mapped.ID)