Tutoriel tm text mining package/lire fichiers script V2
Aller à la navigation
Aller à la recherche
getwd()
library(tm)
# CHANGEZ ICI si nécessaire
endroit = "c:/dks/methodo/R/ex"
dir (endroit)
corpus.source <- Corpus(DirSource(endroit))
corpus.source2 <- VCorpus(DirSource("./ex2"),
readerControl=list(reader=readDOC))
# il faut installer antiword
# readerControl=list (reader=readDOC)
show (corpus.source)
inspect(corpus.source[1])