Learn R Programming

mclm (version 0.2.7)

write_types: Write a vector of types to a text file

Description

This function writes an object of the class types to a text file. Each type is written to a separate line. The file encoding that is used is "UTF-8".

Usage

write_types(x, file, ...)

Value

Invisibly, x.

Arguments

x

Object of class types.

file

Name of the output file

...

Additional arguments (not implemented).

See Also

read_types()

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

Examples

Run this code
.old_wd <- setwd(tempdir())
types <- as_types(c("first", "second", "third"))
write_types(types, "file_with_types.txt")
types_2 <- read_types("file_with_types.txt")
setwd(.old_wd)

Run the code above in your browser using DataLab