lteq: Format s with = if it's not 0, or < otherwise

Description Usage Arguments Examples

View source: R/core.R

Description

Format s with = if it's not 0, or < otherwise

Usage

1
lteq(s, non_equal_char = "<", sep = " ")

Arguments

s

string to format

non_equal_char

character to use if x != 0

sep

separator between the relationship character and s

Examples

1
2
3
4
5
6
7
8
lteq('.0001')
lteq('.000')

p <- t.test(rnorm(100, 1))$p.value
p
lteq(p)
# string format first!
lteq(prop2str(p, precision = 3))

mjaquiery/prettyMD documentation built on Oct. 6, 2021, 4:16 p.m.