R Lists
A list can hold elements of different types and names. Use [[ ]] or $ to reach an element.
Example
p <- list(name = "Ada", age = 21, skills = c("R", "SQL"))
print(p$name); print(p[["age"]]); print(length(p$skills))Exercise
Read an element by name.
pname
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.