pretty_print_helper | R Documentation |
R's built-in warning()
and message()
functions eat named
vectors. Thus, to be able to output the print.default()
version of a
named vector to theconsole, it's necessary to use a pretty print helper
like this one.
pretty_print_helper(named_vector)
named_vector |
A named numeric vector |
A character vector to be used with message() or warning(), consisting of a column aligned table of names and values mimmicking the print.default() behaviour for named vectors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.