skel_stat_n_value_pair: Skeleton for t-statistic-like functions

View source: R/skeletons.R

skel_stat_n_value_pairR Documentation

Skeleton for t-statistic-like functions

Description

This skeleton handles formats like t-statistics (t(df) = value) or correlations (r(df) = value).

Usage

skel_stat_n_value_pair(
  x,
  stat = "t",
  skeleton = "{stat}({x[1]}) = {x[2]}"
)

Arguments

x

a two-element vector where the first number is the argument to the statistical function and the second is its value.

stat

symbol for the statistic. defaults to "t".

skeleton

glue-style format to fill. defaults to "{stat}({x[1]}) = {x[2]}".

Value

the formatted string


tjmahr/printy documentation built on March 4, 2024, 1:25 a.m.