nozero: No zero before decimal

Description Usage Arguments Details Value

View source: R/nozero.R

Description

Truncates a decimal to three decimal places

Usage

1
nozero(x)

Arguments

x

A number < 1

Details

Truncates a < 1 number to three decimal places with no 0 before the decmial places, for use in RMarkdown inline code for APA style documents.

Value

a string without quotes with the appropriately formatted p value.


alexisblackbird/personal.utilities documentation built on May 3, 2019, 9:36 p.m.