将R中的data.frame名称提取为字符 [英] Extract name of data.frame in R as character
本文介绍了将R中的data.frame名称提取为字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何提取R中 data.frame
的名称作为字符?
How can I extract the name of a data.frame
in R as a character?
例如,如果我有名为 df $ c $的
data.frame
c>,我想将 df作为字符对象。
For example, if I have data.frame
named df
, I want to get "df" as a character object.
推荐答案
a <- data.frame()
deparse(substitute(a))
[1] "a"
这也是图
知道如何在轴上放置
This is also how plot
knows what to put on the axes
这篇关于将R中的data.frame名称提取为字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文