General Goal
I have a list of files that I got from a directory:
my_list <- list.files(path = "C:\\mallet-2.0.8\\Output_Files\\")
I'm not sure what kind of object this creates. In any event, each entry in this object holds the name of a file in my original directory. For instance,
my_list[1]
returns
[1] "BobBlumenfield_Narrative.output"
I want to then generate data frames in the following manner:
BobBlumenfield_Narrative <- read_delim("C:/mallet-2.0.8//Output_Files/BobBlumenfield_Narrative.output",
"\t", escape_double = FALSE, trim_ws = TRUE)
Problem
I have many files to do this for. So what I need is
VARIABLE WITH NAME IN LIST <- read_delim("C:/mallet-2.0.8//Output_Files/FILE WITH THE NAME IN LIST",
"\t", escape_double = FALSE, trim_ws = TRUE)
and for the code to then do this for every file in the list.
My Question
How do I generate a list of data frames based on the text stored in my_list
?