R DataFrame

An R DataFrame is kind of a tabular data. It contains a list of columns where each column has same number of rows.

In this tutorial, we will see a basic example of an R DataFrame, and the list of tutorials covering different scenarios of Data Frame.

Example for R DataFrame

The following is an example for R Data Frame with three columns and four rows.

R Data Frame Example

c1, c2, c3 are the columns. 1, 2, 3 and 4 are the rows.

And we have used following R script to generate the above Data Frame.

</>
Copy
df <- data.frame("c1" = c(41, 42, 43, 44),
                 "c2" = c(45, 46, 47, 48),
                 "c3" = c(49, 50, 51, 52))

data.frame() function creates a new DataFrame.

R DataFrame Tutorials

These tutorials cover all the topics related to an R DataFrame.

DataFrame Basic Tutorials

In the following tutorials, we will learn how to create a DataFrame in different ways, and how to access the elements of a DataFrame.

DataFrame Row Tutorials

In the following tutorials, we cover different operations that we can do on DataFrame rows.

DataFrame Column Tutorials

In the following tutorials, we cover different operations that we can do on DataFrame columns.

DataFrame Sorting

In the following tutorials, we will learn how to sort a DataFrame based on a column, or multiple columns, etc.

DataFrame Filtering

In the following tutorials, we will learn how to filter a DataFrame based on a given condition.

DataFrame Conversions

In the following tutorials, we will learn how to convert a DataFrame to other data types, or from other data types to DataFrame.

DataFrame Transformations

In the following tutorials, we will learn how to transform a DataFrame based on the given requirement.

Operations with two or more DataFrames

In the following tutorials, we will learn how to combine two DataFrames, compare DataFrames, or any such operations that include two or more DataFrames.

DataFrame Import / Export

In the following tutorials, we will learn how to import a DataFrame from a data source.

DataFrame – Other Tutorials

These tutorials cover topics that are not covered in the above sections.

Conclusion

In this R Tutorial, we learned what a Data Frame is, in R language, and listed out different tutorials on R Data Frames.