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")

iNZightVIT/iNZightTools documentation built on April 8, 2024, 10:25 a.m.