パディングベクトル[R]欠損値

x <- c(1,2,NA,4,5)
x[is.na(x)] <- 0

おすすめ

転載: blog.csdn.net/u_7890/article/details/92807619