ProjectTemplate (version 0.7)

clean.variable.name: Translate a file name into a valid R variable name.

Description

This function will translate a file name into a name that is a valid variable name in R. Non-alphabetic characters on the boundaries of the file name will be stripped; non-alphabetic characters inside of the file name will be replaced with dots.

Usage

clean.variable.name(variable.name)

Arguments

variable.name

A character vector containing a variable's proposed name that should be standardized.

Value

A translated variable name.

Examples

Run this code
# NOT RUN {
library('ProjectTemplate')

# }
# NOT RUN {
clean.variable.name('example_1')
# }

Run the code above in your browser using DataLab