这是一段来自于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
想问这是怎么回事?