Skip to content
Prev 317760 / 398503 Next

How to findout the name of a dataframe

On Feb 17, 2013, at 5:51 AM, Frans Marcelissen wrote:

            
It will depend on the specifics. The usual way is with deparse(substitute(arg))
[1] "d"
[1] "d$a"

You do realize that mydata$v1 is identical (after evaluation, anyway)  to  mydata[,'v1'] , but not to mydata['v1'], don't you?
[1] "d[\"a\"]"
David Winsemius
Alameda, CA, USA