List (R)

A list is R's flexible container that can hold elements of different types and lengths — including other lists, vectors, data frames, and functions. Unlike a…