merge_fnames | R Documentation |
These functions merge two or more fnames
objects into one larger fnames
object, removing duplicates (keeping only the first appearance) and only
resorting the items if sort = TRUE
.
fnames_merge(x, y, sort = FALSE) fnames_merge_all(..., sort = FALSE)
x, y |
An object of class |
sort |
Boolean value. Should the items in the output be sorted? |
... |
Various objects of class |
An object of class fnames
.
cwd_fnames <- as_fnames(c("file1.txt", "file2.txt")) cwd_fnames2 <- as_fnames(c("dir1/file3.txt", "dir1/file4.txt")) cwd_fnames3 <- as_fnames(c("dir2/file5.txt", "dir2/file6.txt")) fnames_merge(cwd_fnames, cwd_fnames2) fnames_merge_all(cwd_fnames, cwd_fnames2, cwd_fnames3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.