I have a data frame, df. I assigned it to an object, x.
x <- df
I want to create an object,y ,such that y takes the characters "df" , i.e. only the name of the data frame,df in double quotes, and not the data frame itself. However I want to assign "df" to y using the created object x as input.
The output, when y is called, should be:
> y
[1] "df"
I need to extract only the name of data frame, df, and assign it to object y.
I understand that one of the ways of doing this is by creating a list of all the dataframes in the environment and then calling 'df' from that list.
I want to know if there is any other way of doing this.
Thank You.