So I have a list (a1) of length two with a vector within each list element. Here is a simplified version.
a1 <- list(c(0, 1, 2), c(3, 4, 5))
How can I access an element within the vector of a list?
Like if I want to grab the number 2, i've tried the following without luck.
a1[1,][3]
Thanks