strip_extension | R Documentation |
Greedy behavior is optional. Given filename /B/b/B.csv.txt
greedy behavior yields /B/b/B
while lazy behavior yields /B/b/B.csv
strip_extension(x = c("/A/A.txt", "/B/b/B.csv.txt", "/C/c.C/C.foo"), greedy = FALSE)
x |
character vector of one or more filenames |
greedy |
logical if TRUE remove all extensions |
filenames without extensions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.