inline_hook: Inline hook for knitr to paste human-readable numbers and...

View source: R/rmd_helpers.R

inline_hookR Documentation

Inline hook for knitr to paste human-readable numbers and nice lists.

Description

Inline hook for knitr to paste human-readable numbers and nice lists.

Usage

inline_hook(x)

Arguments

x

just about anything

Value

a string where each element in x is separated by a comma and numbers are in a human-readable format.

Author(s)

Kelly Sovacool sovacool@umich.edu

Pat Schloss pschloss@umich.edu

Examples

inline_hook(c(1.2993992, 0.03, 1000))
inline_hook(c("cats", "dogs"))

SchlossLab/mothuR documentation built on Aug. 29, 2023, 1:32 a.m.