Learn R Programming

schtools (version 0.4.1)

inline_hook: 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)

Value

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

Arguments

x

just about anything

Author

Kelly Sovacool sovacool@umich.edu

Pat Schloss pschloss@umich.edu

Examples

Run this code
inline_hook(c(1.2993992, 0.03, 1000))
inline_hook(c("cats", "dogs"))

Run the code above in your browser using DataLab