Learn R Programming

oce (version 0.2-1)

showFives: Show summary-style fivenum stats

Description

Show summary-style fivenum stats

Usage

showFives(x, indent="    ")

Arguments

x
a list that contains an item named fives, which is a matrix, containing data as created with fivenum, with colnames and rownames specified. See Details.
indent
a spacer put at the left of each line of the result

Value

  • A multi-line string, suitable for printing.

Details

This is a helper function for various summary functions. The colnames are normally c("Min.", "1st Qu.", "Median", "3rd Qu.", "Max."), and the rownames are the names of the variables being summarized.

Examples

Run this code
library(oce)
data(ptr)
s <- summary(ptr)
showFives(s)

Run the code above in your browser using DataLab