rmdHelpers: Helper Functions for Rmd Documents
> library(rmdHelpers)
バージョン: 1.0
関数名 | 概略 |
---|---|
formatP |
Format p-value |
myFrac |
Print Fraction for markdown |
myKable |
Wrapper for kable |
printList |
Print nice lists |
refNote |
Generate a popup reference note |
rmdHelpers-package |
Helper Functions for Rmd Documents |
thisFileName |
Identify current file |
thisfile_knit |
Identify the file currently being knitted |
formatP
Arguments
- p
- digits
- scientific
- ...
> formatP(0.049865465646)
[1] "0.0499"
myFrac
> myFrac(letters[1:5], LETTERS[1:5])
[1] "^a^/~A~" "^b^/~B~" "^c^/~C~" "^d^/~D~" "^e^/~E~"
printList
Arguments
- toPrint
- finalSepWord
- midSep
> printList(LETTERS[1:5])
[1] "A, B, C, D, and E"
> printList(letters[1:5], "or", ";")
[1] "a; b; c; d; or e"