How to declare a vector of zeros in R February 5, 2023 by Tarik You have several options integer(3) numeric(3) rep(0, 3) rep(0L, 3)