create_varname: Create variable name

View source: R/code_writing.R

create_varnameR Documentation

Create variable name

Description

Convert a given string to a valid R variable name, converting spaces to underscores (_) instead of dots.

Usage

create_varname(x)

Arguments

x

a string to convert

Value

a string, which is also a valid variable name

Author(s)

Tom Elliott

Examples

create_varname("a new variable")
create_varname("8d4-2q5")

iNZightTools documentation built on Aug. 11, 2025, 1:07 a.m.