varname2string: varname2string

Description Usage Arguments Value Examples

View source: R/strings.R

Description

This function takes a variable name and turns it into a string. Code from John Ramey at http://johnramey.net/blog/2010/12/28/converting-a-string-to-a-variable-name-on-the-fly-and-vice-versa-in-r/

Usage

1

Arguments

x

variable name

Value

string

Examples

1
2
3
x <- 42
varname2string(x)
# [1] "x"

smach/rmiscutils documentation built on Dec. 15, 2021, 1:49 a.m.