| read_fnames | R Documentation |
This function reads an object of class fnames from a text file, which is
assumed to contain one filename on each line.
read_fnames(file, sep = NA, file_encoding = "UTF-8", trim_fnames = FALSE, ...)
file |
Path to input file. |
sep |
Character vector of length 1 or |
file_encoding |
Encoding used in the input file. |
trim_fnames |
Boolean. Should leading and trailing whitespace be stripped from the filenames? |
... |
Additional arguments (not implemented). |
An object of class fnames.
write_fnames()
Other reading functions:
read_assoc(),
read_conc(),
read_freqlist(),
read_tokens(),
read_txt(),
read_types()
cwd_fnames <- as_fnames(c("file1.txt", "file2.txt"))
write_fnames(cwd_fnames, "file_with_filenames.txt")
cwd_fnames_2 <- read_fnames("file_with_filenames.txt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.