printVect | R Documentation |
Convert a named numeric vector to a string. All numbers are rounded up to 2
significant digits. This is a helpfunction for method format
.
printVect(v, collapse = ", ", sep = " = ")
v |
a named numeric vector |
collapse |
an optional character string to separate the results. Not
|
sep |
a character string to separate the names and terms.
Not |
a string containing the names and rounded values of the vector.
pdmpsim:::printVect(c("foo" = 1/3, "bar" = sqrt(2)))
pdmpsim:::printVect(c("a" = 1, "b" = 2, "c" = 3), sep = "~", collapse = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.