這是一段來自於github上的一段程式碼
其中samples=c("A_r","A_ir","B_r","B_ir",...)
reps <- grep("_r|_ir",samples,value=TRUE) # get the replicates (ending with _r or _ir)
samps <- match(sub("_r|_ir","",reps),samples) # match against its sample (ie names w/o _r or _ir)
不過我照著執行後samps只會出現一堆NA
想問這是怎麼回事?