display_name: Get a user-friendly display name

View source: R/server_misc.R

display_nameR Documentation

Get a user-friendly display name

Description

This function provides a user-friendly name for a column based on a mapping table, if available.

Usage

display_name(col_name, mapping_table)

Arguments

col_name

A string specifying the name of the column.

mapping_table

A named list with as name the original colum name and as value the display name

Value

A string containing the user-friendly name for the column.

Examples

  mapping <- list(
col1 = "Column 1",
col2 = "Column 2"
)
display_name("col1", mapping)

vvshiny documentation built on July 26, 2023, 5:50 p.m.