# NOT RUN {
## create wactor
w <- wactor(letters)
## use wactor to create tfidf of same vector
tfidf(w, letters)
## using the initial data is the default; so you don't actually have to
## respecify it
tfidf(w)
## use wactor to create tfidf on new vector
tfidf(w, c("a", "e", "i", "o", "u"))
## apply directly to character vector
tfidf(letters)
# }
Run the code above in your browser using DataLab