-1
Good morning, I would like to create a function that I can use a data frame with a name that is saved in an object. Example: I have the dataframes: df1, df2, df3 All with columns: x, y and z
df1
x y z
1 3 4
2 2 5
3 1 6
df2
x y z
1 3 4
2 2 5
3 1 6
df3
x y z
1 3 4
2 2 5
3 1 6
And in that I would have objects n1, N2 and N3 that would have only the names of objects df1, df2 and df3
n1="df1"
n2="df2"
n3="df3"
And what I would need is to take the n objects with the names of the dataframes and make them receive the dataframes with their names or use the n’s as the dataframes themselves.
Would that be possible? Thank you.
See the help for the function
get
– Carlos Eduardo Lagosta