m ="jan"
n = "5e"
r = paste0("jan","5e","_results")
"jan5e_results"
Now I want to use r's value and select a data frame because I have data frame with names like
jan5e_results
feb5e_results
mar5e_results
.
.
.
similarly how do I select column name from those data frames?
e.g.
jan5e_results will have column name jan_var1
feb5e_results will have column name feb_var1
mar5e_results will have column name mar_var1
.
.
.
using variable names how do I select a data frame and column name like
m ="jan"
n = "5e"
r = paste0("jan","5e","_results")
c = paste0(m,"var1")
r$c
I am asking this because I am trying to make a small utility in shiny which will take input and based on that I need to select specific data frame and specific column. If there is any better way let me know.