Displaying 1 result from an estimated 1 matches for "dir_3compound".
Did you mean:
dir_3compounds
2009 Oct 13
0
tm: Why does adding local metadata take so long?
...ector
dirName <- "/Volumes/RDR Test Documents/3Compounds/TXT"
# Put the paths of the .txt files in the directory into a vector
Files_3compounds <- dir(dirName,
full.names = TRUE,
pattern = "_.*\\.txt",
ignore.case = TRUE)
# Use that vector to create a DirSource object
Dir_3compounds <- DirSource(dirName,
pattern = "_.*\\.txt",
ignore.case = TRUE,
encoding = "latin1")
# Read the .txt files into a volatile corpus
Corpus_3compounds <- Corpus(Dir_3compounds,
readerControl = list(reader = readPlain,
language = "en",
load = TRUE))
I hav...