substitute_deparse | R Documentation |
get_object_name()
captures the name of an input object and returns it as a string.
Replace deparse\s*\(\s*substitute\s*\(([^()]+)\)\s*\)
to substitute_deparse($1)
, then
substitute\s*\(([^()]+)\)\s*\)
to the same.
substitute_deparse(x)
x |
The object whose name you want to capture. |
Returns the name of obj
as a string.
my_var <- 10
get_object_name(my_var) # "my_var"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.