How can I extract the name of a data.frame in R as a character?
data.frame
For example, if I have data.frame named df, I want to get "df" as a character object.
df
a <- data.frame() deparse(substitute(a)) [1] "a"
This is also how plot knows what to put on the axes
plot
2.1m questions
2.1m answers
60 comments
57.0k users