I have a vector (test_vector), and it contains a string; that string is also the name of a dataframe. I need a function that will allow me to display the dataframe knowing given a value in test-vector:
test_vector = "x"
x = tibble(y=seq(1,5))
testdata[1]
What I want is an function that wraps around testdata[1] and returns the dataframe x, not the "x" value of test_vector[1]
Does such a function exist in R.