I want to create a numeric vector in R with a placeholder. Just like in a chracter vector like:
characterVec <- c("a", "b", "", "d")
This gives me a characterVec
vector with a length of 4.
How can I create a numeric vector with a length of 4, but still has one empty value? For example, I would like to know what do I put into the question mark in the following vector.
numericVec <- c(1, 2, ?, 4)