filesstrings (version 0.3.2)

BeforeLastDot: Get the part of a string before the last period.

Description

This is usually used to get the part of a file name that doesn't include the file extension. It is vectorised over string.

Usage

BeforeLastDot(string)

Arguments

string
A character vector.

Value

A character vector.

Examples

Run this code
BeforeLastDot(c("spreadsheet1.csv", "doc2.doc"))

Run the code above in your browser using DataLab