Description Usage Arguments Details Value Examples
This function takes a filepath including the extension, removes the extension and returns the remaining path.
1 | util.remove.fileextension(filePath)
|
filePath |
|
This function accepts a filepath of the structure folder/file.ext
. It
determines the last point in the character string via a RegEx operation. The
underlying logic is that most file extensions will be separated from the
remaining path by that point. Then only the part of the filepath up to that
point is extracted and kept. So the resulting filepath should look like
folder/file
.
character
string representing path in parameter
filePath
without the fileextension.
1 2 | # Input is 'data.csv' and output should be 'data'.
KaggleHouse:::util.remove.fileextension("data.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.