© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
W. YarberryCRAN Recipeshttps://doi.org/10.1007/978-1-4842-6876-6_18

18. Smorgasbord of Simple Statistical Tests

William Yarberry1  
(1)
Kingwood, TX, USA
 

The following are a sampling of one-liner tests. They provide a wealth of information on any numeric series/column with little code required. If you are doing upfront data exploration, put a chunk of these at the beginning of your program.

18.1 Basic Numeric Vector Tests

For simplicity, let’s use the built-in dataset “Animals.” Using brain size as a numeric variable , the following code provides plenty of descriptive information. Figure 18-1, a histogram of brain weights, shows that most are less than 1000 ccs. ...

Get CRAN Recipes: DPLYR, Stringr, Lubridate, and RegEx in R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.