summary.data.frame
Summary of a Data Frame Object

Description

Provides the summary messages for a data frame object. If object is a matrix, it will be converted to a data.frame with as.data.frame and passed to the data.frame method.

Usage

summary.data.frame(object, maxsum = 7L,
   digits = max(3L, getOption("digits") - 3L), ...)
summary.matrix(object, ...)

Arguments

object an object that inherits from "data.frame" or "matrix".
maxsum the maximum number of levels of factor columns to be shown in the result. The first maxsum-1 levels are shown and the rest of levels will be combined in one cell named "(Other)". this argument is passed to summary.factor. See summary.factor.
digits the results for numeric data will be rounded to digit significant digits.
... additional arguments to pass to or from other methods.

Details

This is a method for the function summary() for data.frames and matrices: it should not be called directly but via the generic summary function, which will choose the appropriate method. See summary for the general behavior of this function.
Value
a summary object of class "table" that contains components specific to a data frame.
See Also
summary
Examples
summary(Sdatasets::iris)
summary(Sdatasets::iris, maxsum = 2, digits = 2)
Package base version 6.0.0-69
Package Index