i

R Programming Complete Tutorial

List modification

We can modify the list elements using the indexing. If we assign “gg” to the second position of the 2nd vector, it will replace the previous value of that position.    

We can even delete all the elements, just assigning NULL to the list.

Change component

Delete components