VertitimeX Technologies

R Data Frame.

A data frame is a two-dimensional array-like structure or a table in which a column contains values of one variable, and rows contains one set of values from each column. A data frame is a special case of the list in which each component has equal length.

A data frame is used to store data table and the vectors which are present in the form of a list in a data frame, are of equal length.

In a simple way, it is a list of equal length vectors. A matrix can contain one type of data, but a data frame can contain different data types such as numeric, character, factor, etc.

There are following characteristics of a data frame.

The columns name should be non-empty.
The rows name should be unique.
The data which is stored in a data frame can be a factor, numeric, or character type.
Each column contains the same number of data items.