Great! So far, you've learned that
[[...]] can be used to access any one (and only one) list member directly.
If that member happens to be a data structure, like a vector, then it likely contains more than just a single value. For example,
returns a vector of three values:
French. How do we access each of these values individually?
We can use the vector indexing operator,
. For example,
will return English,
will return Dutch, and
will return French.
To better understand this process, break it down into two steps: First, you retrieve the member from the list. Once you have that member, and you know its type, use the appropriate operator to retrieve its values. For example, if the list member happens to be a data frame, then use either the
$ notation or the
[row, col] notation to retrieve its members.