pretty_print_vector_names_and_values: Pretty printing of a vector's names and values

View source: R/print.R

pretty_print_vector_names_and_valuesR Documentation

Pretty printing of a vector's names and values

Description

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.

Usage

pretty_print_vector_names_and_values(vec, n = -1)

Arguments

vec

vector with names attribute

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.

See Also

pretty_print_name_and_value


usefun documentation built on Sept. 15, 2024, 1:06 a.m.