getExtension: getExtension

View source: R/getExtension.R

getExtensionR Documentation

getExtension

Description

Get the file extension of a given file. This function takes a file path as input and returns the file extension without the dot.

Usage

getExtension(file)

Arguments

file

A character string containing the file path.

Value

A character vector containing the file extension without the dot.

Examples

getExtension("example.txt")


colouR documentation built on Sept. 26, 2023, 5:11 p.m.