wactor {wactor} | R Documentation |
Create wactor
Description
Create an object of type 'wactor'
Usage
wactor(.x, ...)
Arguments
.x |
Input text vector |
... |
Other args passed to Wactr$new(...) |
Value
An object of type wactor
Examples
## create
w <- wactor(c("a", "a", "a", "b", "b", "c"))
## summarize
summary(w)
## plot
plot(w)
## predict
predict(w)
## use on NEW data
dtm(w, letters[1:5])
## dtm() is the same as predict()
predict(w, letters[1:5])
## works if you specify 'newdata' too
predict(w, newdata = letters[1:5])
[Package wactor version 0.0.1 Index]