Learn R Programming

stylo (version 0.5.2)

txt.to.words: Split text into words

Description

Generic tokenization function for splitting a given input text into single words (chains of characters delimited by spaces or punctuation marks).

Usage

txt.to.words(input.text)

Arguments

input.text
a string of characters or text.

Details

The generic tokenization function for splitting a given input text into single words (chains of characters delimited with spaces or punctuation marks). Alternatively, the function can be another tokenization rules. ATTENTION: this is the only piece of coding in this script collection that depends on the operating system used.

See Also

txt.to.words.ext, txt.to.features, make.ngrams

Examples

Run this code
txt.to.words("And now, Laertes, what's the news with you?")

Run the code above in your browser using DataLab