September 2017
Beginner to intermediate
560 pages
25h 18m
English
When factor summaries are combined with those for numerical variables (as in the earlier example), summary() gives counts for a maximum of six levels and lumps the other counts under Other.
You can invoke summary() and the str() function for a single variable as well. In such a case, the summary you get for numerical variables remains as before, but for factors, you get counts for many more levels:
> summary(auto$cylinders)> summary(auto$mpg)> str(auto$cylinders)
Read now
Unlock full access