write_tokens {mclm}R Documentation

Write a tokens object to a text file

Description

This function writes an object of the class tokens to a text file. Each token is written to a separate line. The file encoding is always "UTF-8". This file can later be read with read_tokens().

Usage

write_tokens(x, file, ...)

Arguments

x

An object of class tokens.

file

Name of the output file.

...

Additional arguments (not implemented).

Value

Invisibly, x.

See Also

read_tokens()

Other writing functions: write_assoc(), write_conc(), write_fnames(), write_freqlist(), write_txt(), write_types()

Examples


(tks <- tokenize("The old man and the sea."))
write_tokens(tks, "file_with_tokens.txt")
(tks2 <- read_tokens("file_with_tokens.txt"))


[Package mclm version 0.2.7 Index]