Learn R Programming

rmngb (version 0.6-1)

nameToString: Convert Object Name to Character String

Description

Converts an object name or an expression to a string.

Usage

nameToString(x)

Arguments

x
any object or an expression

Value

A character string of length 1.

Details

Useful for plot labelling.

Examples

Run this code
foo <- 1:10
nameToString(foo) # "foo"

Run the code above in your browser using DataLab