# create dictionary
d <- numvecdict()
# assign new vector
d[[ c(2,3) ]] <- c(1:3)
# and add a number
d$append_number(c(2,3), 4)
# return values
d[[ c(2,3) ]]
# appending to a new key will create a new vector
d$append_number("new!", 42)
Run the code above in your browser using DataLab