sweet_stat: APA-style decimal rounding for stats

Description Usage Arguments Value See Also

Description

This is the generic version of the function.

Pass a numeric value to sweet_stat

Pass a numeric string value to sweet_stat

Pass a integer value to sweet_stat

Default method for sweetening a statistic

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
sweet_stat(.stat, ...)

## S3 method for class 'numeric'
sweet_stat(.stat, ...)

## S3 method for class 'character'
sweet_stat(.stat, ...)

## S3 method for class 'integer'
sweet_stat(.stat, ...)

## Default S3 method:
sweet_stat(.stat, ...)

Arguments

.stat

a numeric value representing a statistic

...

pass "rnd_digit" to set digits (defaults to 2)

Value

stat as APA-rounded character vector

See Also

Other sweet_stat functions: sweet_p


darrellpenta/dissertate documentation built on May 14, 2019, 6:10 p.m.