printVect: printVect

Description Usage Arguments Value Examples

Description

Convert a named numeric vector to a string. All numbers are rounded up to 2 significant digits. This is a helpfunction for method format.

Usage

1
printVect(v, collapse = ", ", sep = " = ")

Arguments

v

a named numeric vector

collapse

an optional character string to separate the results. Not NA_character_.

sep

a character string to separate the names and terms. Not NA_character_.

Value

a string containing the names and rounded values of the vector.

Examples

1
2
pdmpsim:::printVect(c("foo" = 1/3, "bar" = sqrt(2)))
pdmpsim:::printVect(c("a" = 1, "b" = 2, "c" = 3), sep = "~", collapse = NULL)

CharlotteJana/pdmpsim documentation built on July 2, 2019, 5:37 a.m.