Is there any way to automatically create an indicator variable when combining quanteda corpora (using the plus operator) that can label which source corpus the document came from? For instance, say you have two corpora, corpus1 and corpus2. You run the following:
corpus 3 <- corpus1 + corpus2
I'd like to find some way to create a new docvar that indicates which corpus each document in corpus3 comes from. Any ideas?