wactor: Create wactor

Description Usage Arguments Value Examples

View source: R/wactor-s3.R

Description

Create an object of type 'wactor'

Usage

1
wactor(.x, ...)

Arguments

.x

Input text vector

...

Other args passed to Wactr$new(...)

Value

An object of type wactor

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## 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])

wactor documentation built on Dec. 18, 2019, 5:07 p.m.