getTruncText: Get Truncated Text

View source: R/SurveyUtil.r

getTruncTextR Documentation

Get Truncated Text

Description

Provides a formatted chunk of text to display to the user by limiting output to the first 'show_n' elements for the vector of 'values' and providing text identifying how many more are in the vector

Usage

getTruncText(values, show_n = 10, collapse = "\n")

Arguments

values

A vector of values to turn into text

show_n

How many elements to show before truncating

collapse

String used to combine the multiple values

Value

Text with the a vector of values to print to a log file

Examples

iRecAnalysisPkg::getTruncText(letters)


nick-komick/iRecAnalysisPkg documentation built on July 7, 2024, 6:29 a.m.