r - Import a data frame stored in the global environment into a function using a character string -


this theoretical question , not reproducible. apologies in advance.

i have n dataframes in global environment:

df_1, df_2 ... df_n 

and want operate on these dataframes within function output new dataframes global environment. want function takes name of dataframe , brings function environment operated on, instance:

myfun <- function(name){ ... need bring in df1, operate on it, , make new df}) 

once have function, i'll use lapply apply character string of dataframes need operate on.

my question is, how use character string of dataframe names reference dataframes stored in global environment (i.e. - df1, df2 ... dfn) can create new dataframes these referenced ones?


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -