declare a list and adding an element in …

declare a list and adding an element in R

test.list <- list()
test.list[['key']] <- value  # adding an element
test.list[['key']]  # retrieve the element

Comments

Leave a Reply