powered by
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".
types
"UTF-8"
write_types(x, file, ...)
Invisibly, x.
x
Object of class types.
Name of the output file
Additional arguments (not implemented).
read_types()
Other writing functions: write_assoc(), write_conc(), write_fnames(), write_freqlist(), write_tokens(), write_txt()
write_assoc()
write_conc()
write_fnames()
write_freqlist()
write_tokens()
write_txt()
.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