iprint: In-line printing

View source: R/utils2.R

iprintR Documentation

In-line printing

Description

Modified p function from the pander package.

Usage

iprint(
  ...,
  wrap = "",
  sep = ", ",
  copula = ", and ",
  digits = if (is.integer(x)) 0L else 2L
)

Arguments

...

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 roundr

See Also

p; roundr; countr

Examples

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 = ' & ')


raredd/rawr documentation built on March 4, 2024, 1:36 a.m.