iprint | R Documentation |
Modified p
function from the pander package.
iprint(
...,
wrap = "",
sep = ", ",
copula = ", and ",
digits = if (is.integer(x)) 0L else 2L
)
... |
one or more numeric or character elements to be converted into character vectors |
wrap |
character string to wrap each term |
sep |
character string to separate the terms |
copula |
character string to separate last two terms |
digits |
number of digits past the decimal point to keep; see
|
p
; roundr
; countr
iprint(rnorm(2))
iprint(-0.000, 0.100)
## compare numeric and integer default printing
iprint(1, 2, 3)
iprint(1:3)
iprint('fee', 'fi', 'fo', 'fum')
iprint(LETTERS[1:5], copula = ', and the letter ')
iprint('Thelma', 'Louise', copula = ' & ')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.