The data. frame() function builds data frames, which are tightly coupled collections of variables that have many of the properties of matrices and lists and are utilised as the basic data structure for much of R's modelling applications.