A data frame is a table or a two-dimensional array-like structure in which each column contains values of one variable and each row contains one set of values from each column.
Following are the characteristics of a data frame.
- The column names should be non-empty.
- The row names should be unique.
- The data stored in a data frame can be of numeric, factor or character type.
- Each column should contain same number of data items.
Dataframe are generic data objects of R which are used to store the tabular data. Data frames are the most popular data objects in R programming because it is more comfortable to analyze the data in the tabular form. Data frames can also be taught as mattresses where each column of a matrix can be of the different data types. Dataframe are made up of three principal components, the data, rows, and columns.
Let’s work on Dataframe Creation, Accessing its values , Subsetting and other functions in the upcoming posts.