O'Reilly logo

R Data Science Essentials by Sharan Kumar Ravindran, Raja B. Koushik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Descriptive statistics

Descriptive statistics is a method of summarizing a dataset quantitatively. These summaries can be simple quantitative statements about the data or a visual representation sufficient enough to be part of the initial description about the dataset.

To get a basic understanding about the dataset, we can use the built-in function summary. This function quickly scans the dataset and provides the following information about the dataset. This will really help in getting a first-cut understanding about the data. This will be useful for numerical as well as categorical data.

summary(tdata)

The output is as follows:

Descriptive statistics

The summary function ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required