Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
res["DATA_FLAG"] <- NA for(i in remove.res) { res$DATA_FLAG[i] <- "BADDATA" }
res 只是一个数据框,我在其中添加了一列 DATA_FLAG
remove.res 只是一个数字向量,它对应于数据框“res”我要添加标志 BADDATA 的行