powered by
Initialize a vector
vec_init(x, n = 1L)
Template of vector to initialize.
Desired size of result.
vec_slice()
vec_init(1:10, 3) vec_init(Sys.Date(), 5) # The "missing" value for a data frame is a row that is entirely missing vec_init(mtcars, 2) # The "missing" value for a list is `NULL` vec_init(list(), 3)
Run the code above in your browser using DataLab