pretty_print_vector_names_and_values | R Documentation |
It outputs a vector's names and values in this format: name1: value1, name2: value2,.... You can choose how many elements to show in this format. Use with the chuck option results = 'asis' to get a nice printing in an R notebook.
pretty_print_vector_names_and_values(vec, n = -1)
vec |
vector with |
n |
the number of elements that you want to print in a nice way. Default value: -1 (pretty print all elements). For any n < 1, all elements are printed. |
pretty_print_name_and_value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.