Learn R Programming

xpose (version 0.4.19)

get_extension: Get file extension

Description

Extract file extension from the filename string.

Usage

get_extension(x, dot = TRUE)

Value

A string or vector of string of the file(s) extension.

Arguments

x

A string or vector of strings containing the filenames with the extension.

dot

Logical, if `TRUE` the returned value will contain the dot (e.g `.mod`) else only the extension itself will be returned (e.g. `mod`).