Learn R Programming

chinese.misc (version 0.2.3)

DEFAULT_control2: A Default Value for corp_or_dtm 2

Description

The object specifies word length from 2 to 25. The second element, a tokenizer, is temporally deprecated. Also, DEFAULT_control1 sets length from 1 to 25.

Usage

DEFAULT_control2

Arguments

Format

An object of class list of length 2.

Examples

Run this code
# NOT RUN {
require(tm)
x <- c(
  "Hello, what do you want to drink?", 
  "drink a bottle of milk", 
  "drink a cup of coffee", 
  "drink some water")
dtm <- corp_or_dtm(x, from = "v", type = "dtm", control = DEFAULT_control2)
# }

Run the code above in your browser using DataLab