I would like to know if there is a way when importing a file from instead of specifying the name of the document to import, just provide the name of the folder and let R import what is inside (always assuming there is only one document). Because sometimes I have the name of very large files and it would be much easier for me just to write the name of the folder. For example, now I import like this:
base_neg <- read_excel ("Data / Bases / Canonical / List_neg.xls")
But I would just like to give it "Data / Bases / Canonical /", so that it looks like this:
base_neg <- read_excel ("Data / Bases / Canonical").
Is there a function to do that?