General List Operations
Now that you’ve seen a simple example of creating a list, let’s look at how to access and work with lists.
You can access a list component in several different ways:
> j$salary  55000 > j[["salary"]]  55000 > j[]  55000
We can refer to list components by their numerical indices, treating the list as a vector. However, note that in this case, we use double brackets instead of single ones.
So, there are three ways to access an individual component
c of a list
lst and return it in the data type of
iis the index of
Each of these is useful in different contexts, as you will see in subsequent examples. But note the qualifying phrase, “return it in the data ...