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
Post a Comment