Last chance! 50% off unlimited learning
Sale ends in
# S3 method for collocations
as.tokens(x)as.tokens(x)
# S3 method for list
as.tokens(x)
# S3 method for tokens
as.list(x, ...)
# S3 method for tokens
as.character(x, use.names = FALSE, ...)
is.tokens(x)
# S3 method for tokens
+(t1, t2)
# S3 method for tokens
c(..., recursive = FALSE)
TRUE
. For
as.character
only.as.tokens
returns a quanteda tokens objectas.list
returns a simple list of characters from a
tokens object
as.character
returns a character vector from a
tokens object
is.tokens
returns TRUE
if the object is of class
tokens, FALSE
otherwise.
toks1 <- tokens(data_corpus_inaugural[1:5])
toks2 <- tokens(data_corpus_inaugural[21:25])
toks3 <- toks1 + toks2
toks1 <- tokens(data_corpus_inaugural[1:5])
toks2 <- tokens(data_corpus_inaugural[21:25])
toks3 <- tokens(data_corpus_inaugural[41:45])
summary(c(toks1, toks2, toks3))
Run the code above in your browser using DataLab