bt_if_needed: Conditionally add backticks based on syntax validity

View source: R/wb_utils.R

bt_if_neededR Documentation

Conditionally add backticks based on syntax validity

Description

Add backticks only if the name is not a valid R syntactic name.

Usage

bt_if_needed(x, data = NULL)

Arguments

x

A character string

data

Optional data frame to check if x exists as a column name

Value

The name, potentially backticked


panelr documentation built on Jan. 21, 2026, 9:06 a.m.