1
I’m doing a function that traverses data frames in search of non-numerical values. To do so, I have to ask the user to provide a data frame as input. Thus, I write:
data.frame <- readline(prompt = "Insira Nome do DataFrame: ")
However, after entering the name of the data frame, what is saved in "data.frame" is a string corresponding to what was typed. I did a search and saw that the readline() function does just that, but I couldn’t find one that did what I wanted, that is, receive and save the data in the data frame format. Does anyone have a suggestion? Perhaps it is important that I mention that data frames serving as input are loaded in the R Enviroment. I’ve got Tidyverse up and running.