all_values: Concatenate Names and Values of a Named Vector

View source: R/utils.R

all_valuesR Documentation

Concatenate Names and Values of a Named Vector

Description

The 'all_values' function takes a named vector 'x' and concatenates the names and formatted values into a single string.

Usage

all_values(x)

Arguments

x

Named vector for which to concatenate names and values.

Value

A character vector containing the names and formatted values of the input vector, separated by line breaks.

Examples

my_vector <- c(apples = 5, bananas = 3, oranges = 2)
all_values(my_vector)


mbannert/dropR documentation built on March 28, 2024, 2:12 p.m.