name
[[1]]
[1] "John" "Davis"
[[2]]
[1] "Angela" "Williams"
[[3]]
[1] "Bullwinkle" "Moose"
The data is as above, I want to take last and first name from the list. The code is:
lastname <- sapply(name, "[", 2)
My question: what does the [
mean?