Skip to content
Prev 386167 / 398513 Next

help loading files into R for koRpus analysis

On 02/11/2020 4:46 p.m., Gordon Ballingrud wrote:
On Windows, you can't have an empty entry in a pathname, so you should 
leave off one of the slashes:

   texts <- readtext(paste0("/Users/Gordon/Desktop/WPSCASES/", 
"word/*.docx"))

You could skip the paste0 entirely, and use

   texts <- readtext("/Users/Gordon/Desktop/WPSCASES/word/*.docx")

but I'm assuming this is just an example of a more complex situation.

Duncan Murdoch