O'Reilly logo

R Statistical Application Development by Example Beginner's Guide by Prabhanjan Narayanachar Tattar

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

Time for action – the essential summary statistics for "The Wall" dataset

We will understand the summary measures for EDA through the data on centuries scored by Rahul Dravid in test matches.

  1. Load the useful EDA package: library(LearnEDA).
  2. Load the dataset TheWALL from the RSADBE package: data(TheWALL).
  3. Obtain the quantiles of the centuries with quantile(TheWALL$Score), and the difference between the quantiles using the diff function diff(quantile(TheWALL$Score)). The output is as follows:
    > quantile(TheWALL$Score)
       0%   25%   50%   75%  100% 
    100.0 111.8 140.0 165.8 270.0 
    > diff(quantile(TheWALL$Score))
       25%    50%    75%   100% 
    11.75  28.25  25.75 104.25

    As we are considering Rahul Dravid's centuries only, the beginning point is 100. The median of his centuries is ...

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