read_types | R Documentation |
This function read an object of the class types
from a text file. By default,
the text file is assumed to contain one type on each line.
read_types( file, sep = NA, file_encoding = "UTF-8", trim_types = FALSE, remove_duplicates = FALSE, sort = FALSE, ... )
file |
Name of the input file. |
sep |
If not |
file_encoding |
The file encoding used in the input file. |
trim_types |
Logical. Should leading and trailing white space should be stripped from the types. |
remove_duplicates |
Logical. Should duplicates be removed from |
sort |
Logical. Should |
... |
Additional arguments (not implemented). |
Object of class types
.
write_types()
Other reading functions:
read_assoc()
,
read_conc()
,
read_fnames()
,
read_freqlist()
,
read_tokens()
,
read_txt()
types <- as_types(c("first", "second", "third")) write_types(types, "file_with_types.txt") types_2 <- read_types("file_with_types.txt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.