Skip to contents

This function truncates row names that exceed a specified maximum length. If the row name length exceeds the maximum length, it appends " ..." to indicate truncation.

Usage

truncate_row_names(names, max_length = 40)

Arguments

names

A character vector of row names.

max_length

An integer specifying the maximum length of the row names. Default is 40.

Value

A character vector of truncated row names.