specify_decimal_p

0th

Percentile

Custom function for getting specified number of decimal places in results for p-value

Function to format an R object for pretty printing with a specified (k) number of decimal places. The function also allows highly significant p-values to be denoted as "p < 0.001" rather than "p = 0.000".

Usage
specify_decimal_p(x, k = 3, p.value = FALSE)
Arguments
x

A numeric variable.

k

Number of digits after decimal point (should be an integer) (Default: k = 3).

p.value

Decides whether the number is a p-value (Dafault: FALSE).

Value

Formatted numeric values.

Aliases
  • specify_decimal_p
Documentation reproduced from package ggstatsplot, version 0.0.2, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.