Creating lists

Let's move one step back; how do we generally create lists? Here, we always use the assignment operator <-, the one we met when dealing with vectors. What is going to be different here is the function applied. It will no longer be c(), but a reasonably named list(). For instance, let's try to create two vectors and then merge them into a list:

first_vector  <- c("a","b","c")
second_vector <- c(1,2,3)
vector_list <- list(first_vector, second_vector)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset