paste_paren: paste_paren

View source: R/paste_paren.R

paste_parenR Documentation

paste_paren

Description

If only 'x' is provided, it wraps the value in parentheses (e.g., 10.12 becomes "10.12"). If 'x' and 'y' are both provided, it combines the two numbers (e.g., 10.12 and 2.22) by wrapping the latter in parentheses (e.g., 10.12(2.22)). This part of the function was made to streamline the creation of tables that include cells formatted mean(sd).

Usage

paste_paren(x, y)

Arguments

x

a scalar or an atomic vector.

y

a second scalar or atomic vector that will be wrapped in parentheses.


camkay/panoply documentation built on Jan. 17, 2025, 6:31 a.m.