
Last chance! 50% off unlimited learning
Sale ends in
Creates a simple atomic vector with init
as values.
named_vector(nn = character(0L), init = NA)
(character()
)
Names of new vector
(atomic
)
All vector elements are initialized to this value.
(named vector()
).
# NOT RUN {
named_vector(c("a", "b"), NA)
named_vector(character())
# }
Run the code above in your browser using DataLab