Re: [R] help loading files into R for koRpus analysis

2020-11-02 Thread Gordon Ballingrud
Thanks; that's a good point. Here is what I have been working with: library(quanteda) library(readtext) texts <- readtext(paste0("/Users/Gordon/Desktop/WPSCASES/", "/word/*.docx")) And the error message: Error in list_files(file, ignore_missing, TRUE, verbosity) : File '' does not exist. On

Re: [R] help loading files into R for koRpus analysis

2020-11-02 Thread Duncan Murdoch
On 02/11/2020 4:46 p.m., Gordon Ballingrud wrote: Thanks; that's a good point. Here is what I have been working with: library(quanteda) library(readtext) texts <- readtext(paste0("/Users/Gordon/Desktop/WPSCASES/", "/word/*.docx")) On Windows, you can't have an empty entry in a pathname, so yo

Re: [R] help loading files into R for koRpus analysis

2020-11-02 Thread Duncan Murdoch
You may get a helpful response, but if not, I'd suggest posting code you have to read one file. Then lots of people could likely show you how to modify it to read all 4000 files. Duncan Murdoch On 02/11/2020 12:28 p.m., Gordon Ballingrud wrote: Hello all, I need some help with loading tex

[R] help loading files into R for koRpus analysis

2020-11-02 Thread Gordon Ballingrud
Hello all, I need some help with loading text-file data into R for analysis with packages like koRpus. The problem I am facing is getting R to recognize a folder full of Word files (about 4,000) as data which I can then make koRpus perform analyses like Coleman-Liau indexing. If at all possib