filenames | R Documentation |
This function takes a character vector of paths and returns just the file
name, by default without the extension. A TextReuseCorpus
uses
the paths to the files in the corpus as the names of the list. This function
is intended to turn those paths into more manageable identifiers.
filenames(paths, extension = FALSE)
paths |
A character vector of paths. |
extension |
Should the file extension be preserved? |
basename
paths <- c("corpus/one.txt", "corpus/two.md", "corpus/three.text")
filenames(paths)
filenames(paths, extension = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.