Useful functions to draw automated summaries

A very standard procedure whenever conducting data analysis with R is to get a glimpse of data. To input head() and tail() functions with a DataFrame is quite common among R users; people tend to use both to check whether data was correctly read. While the latter function will display the last few observations, the former will show you the first ones. That's useful, but not what we're looking for.

There is another function commonly called at the beginning of a data analysis process. It's called summary(). A short demonstration lies ahead:

summary(big_sample)#    Min. 1st Qu. Median Mean 3rd Qu. Max. # -11.317 6.586 9.980 9.971 13.345 32.341

This function works differently depending on what class of ...

Get Hands-On Data Science with 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.