how to access elements from a vector that resides in a list not clear why it works like in de code example l[2] is a vector l[2][1] is expected to refer to the 1st element of the vector
l <- list( 0, c(1,7,12))
l[2][1] # does not work, gives.....[1] 1 7 12
l[2][[1]][1] # does work as desired, gives [1] 1, but don no why
l[2][[1]][2] # gives [1] 7, as desired