making vector of zeros in r code example Example: create a vector of zeros in r integer(3) numeric(3) rep(0, 3) rep(0L, 3)