r create empty vector of length 100 code example Example: r empty vector of length X <- vector(mode="character", length=10)