Simple Operations on a Data Frame

About

You can perform some simple tabulations on a data frame by using some basic commands within R to load calculations applied against the dataset into columns, then printing them.

In this example the mtcars dataset contains data on fuel consumption for 32 vehicles manufactured in the 1973-1974 model year. The output contains computed correlations between pairs of columns.

 

Contributors

Patrick Wiese, ASA

Improve this page

Please let us know if you see an error or omission on this page.

Provide Feedback