I have a question.
For example, I would like to remove a dataframe, df_to_remove
, in R.
I can remove it in this way: rm("df_to_remove")
.
If I set a string variable called dataframe_name.
dataframe_name = "df_t_remove"
Why the following commend does not work?
rm(eval(dataframe_name))
?
How to remove a dataframe in R by a string variable?