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