format_varnames: "Format" a character vector of column/variable names for cli...

View source: R/utils.R

format_varnamesR Documentation

"Format" a character vector of column/variable names for cli interpolation

Description

Designed to give good output if interpolated with cli. Main purpose is to add backticks around variable names when necessary, and something other than an empty string if length 0.

Usage

format_varnames(x, empty = "*none*")

Arguments

x

chr; e.g., colnames of some data frame

empty

string; what should be output if x is of length 0?

Value

chr


cmu-delphi/epiprocess documentation built on Oct. 29, 2024, 5:37 p.m.