r - Print out a vector name which is assigned to another vector -


not desperately important, print variable name "v1" using v2:

v1=c(1,2,3,4) v2=v1 print(source_name(v2)) 

can done?

you need change v2 string , use get(). print() useless (in case)

v1=c(1,2,3,4) v2='v1' get(v2) 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -