Convert a list resulting from the summaries performed in a summaryFunction into a summaryResult object, thereby supplying it with a print() method.

summaryResult(ls)

Arguments

ls

A list with entries $feature (a character string describing what summary was obtained), $result (the result of the summary, either a value from the variable, a numeric or a character string) and $value (the result in its most raw format, often identical to the $result input).

Value

A S3 object of class summaryResult, identical to the inputted list, ls, except for its class attribute.

See also