I am putting together a corpus in quanteda in R and seem to be stuck at the first step. I want to specify that docvars should be taken from the filenames of my corpus. I had already named all files in the same convention, separated with underscores. However I am consistently receiving the error message "Filename elements are not equal in length"
This is the code I have used that resulted in the error
The naming convention is a variation on "UK_manif_1992_Con_Major_FourthTerm_Win_Gov" for every file. Some have 7 variables and others 8 (different document types, indicated by the second variable) but I tried only creating the corpus using one kind of document type with readtext, and the subsequent step using docvarsfrom resulted in the same error.
I'd appreciate any advice you can offer.