🌈 搜索
📅  最后修改于: 2022-03-11 14:55:30.003000             🧑  作者: Mango
na.locf <- function(x) { v <- !is.na(x) c(NA, x[v])[cumsum(v)+1] }