Learn R Programming

JWileymisc (version 1.4.1)

roundedfivenum: Calculate a rounded five number summary

Description

Numbers are the minimum, 25th percentile, median, 75th percentile, and maximum, of the non missing data. Values returned are either the significant digits or rounded values, whichever ends up resulting in the fewest total digits.

Usage

roundedfivenum(x, round = 2, sig = 3)

Value

The rounded or significant digit five number summary

Arguments

x

The data to have the summary calculated on

round

The number of digits to try rounding

sig

The number of significant digits to try

Examples

Run this code
JWileymisc:::roundedfivenum(rnorm(1000))
JWileymisc:::roundedfivenum(mtcars$hp)

Run the code above in your browser using DataLab